I have something like the following in my css:
#mybox-id {
background: transparent;
transition: background .5s ease-in;
}
#mybox-id:hover {
background: linear-gradient(to top, rgba(229,95,218,1) 40%,
rgba(229,95,218,1) 40%, transparent);
}
Transition is ignored. On mouse over/out, the color of linear-gradient appears/disappears instantly. If i put in place of linear-gradient any single color, e.g. rgba(229,95,218,1) or purple etc, transition works as expected: on mouse over/out, the color fades in/out gradually.
I have tried also background-image and background-color with same results.
Any ideas on why transition does not work in combination with linear-gradient? This is what i want to accomplish.