I have a requirement to have a button which on hover should display two colors on it. I was able to achieve mix up the colors to a certain level but not able to produce the exact one.Below is my code,
.triangle:hover{
background: -webkit-linear-gradient(-45deg, red 50%,yellow 20%);
}
<button class='triangle'>
Linear Check
</button>
Using the above I was able to produce a image like this one on below

Please let me know if this is possible and can be achieved using linear gradient . Thanks in advance