CMS elements Interactions with fixed Div

I am trying to make a cms collection affect a Div and its content.
Basically what I am trying to do is to make a hover over on elements of a CMS.
The Hover over should make a div visible and its content from the Collection.
But what I cant figure out is how to make all hover overs make the content visible at the same place.

In my example the cms has Colors and i want the big Div(Colorfield) show the color depending on what field I hover over.
Under the cms there is my “solution” without using a cms. But for my case it has to be a CMS. :frowning:

Any Ideas?

Example:
https://preview.webflow.com/preview/webflow-forum-question-page?preview=544a8933a4fc7127cc6486c7183d6e50

OK.

Hovering an item and showing a colored div is the easy part. Just add a acolored div to the item, mask it and make an interaction to show it. By limiting the effect of interaction, each button will show its colored div.

http://vincent.polenordstudio.fr/snap/7yrul.jpg

http://vincent.polenordstudio.fr/snap/ncuph.jpg

And with interaction:

http://vincent.polenordstudio.fr/snap/l15xk.jpg

Now you want the colored div at the same spot. We can use Absolute. Absolute position will position the element regarding its closets positionned parent. So let’s make sure all the parents of the colored div have NO position defined, and let’s put a position:relative on the dynamic list parent, or any elment that is a common parent to all the colored divs.

Give a class to the dynamic item and style it static because by defaut it’s relative:

http://vincent.polenordstudio.fr/snap/kz5j9.jpg

then make sure the dyn list has relative. give it a name and set it to relative because this one by default is static

http://vincent.polenordstudio.fr/snap/gbwxl.jpg

Now the reference for position of the colored div is the dyn list

unhide the colored div and position them as needed

http://vincent.polenordstudio.fr/snap/gjrbd.jpg

Hide it again and test your interaction

2 Likes

Thank you very much! I missed using the dyn item on auto. :slight_smile:

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.