Streaming live at 10am (PST)

Need help with hover options on an image

Hi there,

I have altered the hover attributes on my images here just to expand a bit.

I would like text to appear over the image in a small box similar to this page when hovered over. Is there a simple way of doing this in Webflow?



There is no way to make an element follow the cursor in Webflow at the moment. It’s still possible with Javascript programming.

You can make the text, or anything, appear when the cursor hovers the image though, with interactions. Check the example 5 on this page

Thanks for the link Vincent. All I want is a word to pop up over the image when hovered over. I can’t work out how to do that with interactions. Do you think you could do one for me to demonstrate? For example, the first image on the “Prestige events magazine” page needs to say BLOG when hovered over. Is this possible?

1 set your link block to position:relative
2 drag a div inside it, set it to position:absolute, 100% height and width and click the upper left corner position button
3 put a text in in, center horizontal, center vertical (position:rzlative then down 50% then translate -50%)
4 add a bg
5 set the div to opacity 0%
6 switch to hover state
7 opacity 100%

watch this

So helpful, thank you so much for that.
Much appreciated


1 Like

There is something I haven’t explained and is quite important.

The fact you have to set the link block to position:relative (which has no effect at all on this block) is to allow the poition:absolute of the inner div to work. The rule here is the an absolute positionned element is placed relatively of its closest placed parent. So in order to place this div relatively (on top of in our example) the link block, we need the link block to have a position declared. So we set it to relative and touch nothing else. If we don’t do that, the inner div is going to place itself somewhere else on the page, on top of one of its placed parents.