I’m trying to do a basic colour overlay on an image on hover. How do I apply a transition to this, so it doesn’t just jump between the image and colour?
In my image :hover class I have added the colour as an Overlay, and added a Transiiton of all 2.5s ease, but this doesn’t work.
Aha, I see which overlay you mean now. Sorry, previously I thought you meant “overlay” as a general color change, over the div element, that includes “image” element.
Ah, yeah, with overlay, it will not work like this because we use “linear gradient,” which does not support transitions.
OK, thanks. I think I have been approaching this the wrong way. I have now added the transition to the Div element and applied a CSS Filter on hover, which gives me the effect I was trying to achieve.