I am trying to create an animated text hover effect on the images on this website homepage:
I have found the following tutorial: https://webflow.com/blog/how-to-create-a-thumbnail-overlay
This looks perfect, except when I set each image to absolute it disappears. I’m not sure why, it’s obviously something I’ve got set up somewhere.
Can anyone help me out with this one?
Here is my public share link: https://preview.webflow.com/preview/thecrimsontree?preview=e25bb8a5c5409bf93b77a447fab52545
Why do you want the image to be absolute?
I’m just going off the guide in the link I posted which says to set them as absolute.
I’ve got the layout set up using flex so this obviously isn’t going to work but I can’t see how to do the text over the image when hovered without.
Just racked my brain, had a play and got it work!
Set the text inside the image div and make the interaction for that image div, IMHO you don’t need to position the image absolute to get that result.
In order to make an element absolute you just make sure that the parent element has a position display set other than Auto.
Hope that helps.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.