i wrote this codes
style :
.triangle{
width: 0px;
height: 0px;
border-style: solid;
border-width:0 0 100px 300px ;
border-color: transparent transparent black transparent;
}
.triangle:hover{
transition: ease .9s all;
border-color: transparent transparent red transparent;
}
and html :
<div class="triangle"></div>
my problem is when i move out of div the color reback to black so fast anybody can help me to solve this problem ?