Streaming live at 10am (PST)

Is Image Map the best way to achieve this?


#1

I need to be able to show different information when users mouse over parts of the attached image. What’s the best way to achieve that effect? Thanks!


#2

Hey Clark,

I am thinking of keeping this simple.

You could try creating a container that will hold the image (position relative), and then you can create smaller divs (positioned absolute) that will hold the info of the circle, line, and description (these divs will be in the initial container as well.)

You can then move those smaller divs over parts of the image and keep them hidden. Then you could reveal the info when a user hovers over that area/div (using some on-hover interactions).


#3

Thanks, Riley. I’ll try that out!
-Clark


#4

So I tried laying out the image just to see if I could get alignment right, and it looks good until I resize the window a bit. What am I doing wrong as far as positioning? Each div is it’s own class and contains a link block which contains the image. The container is set to relative and the internal divs are all set to absolute.


#5

Do you have a share link?


#6

Oh yeah my bad. Here you go: https://clarks-stunning-project.webflow.io/


#7

So the container that the skeleton background image is in should be relative. You’ll need to give it a set height (possibly 100vh) or something.

Also, I would make a custom container rather than using the Webflow one. The Webflow container element has specific widths for each viewport which are going to affect your absolute positioned items. You might be okay by just having the custom container be a max-width of 940px;

Hopefully that helps a bit more.


#8

Thanks a bunch! I’ll get to fiddlin’.


#9

Hey Riley, thanks for the help. Here’s what I ended up with. https://valley-ortho-anatomy.webflow.io/


#10

Glad I could help! It’s looking good.