Hello,
I’m trying to create a header with a fairly simple hover effect. When hovering over a text, the text should change color and a hidden element (a lottie animation) should appear next to the text.
I have a setup like this at the moment:
What I want to achieve is when hovering “Work” (Heading) then “Lottie” (Lottie element from Bricksable) should appear.
Doing it with pseudo-class did not work for me. Maybe I’m doing something wrong here?
I have also tried this CSS code on Page Settings > Custom CSS :
.header-anim {
display: none; /* hide the lottie element by default */
}
.header-text-01:hover + .header-anim {
display: block !important; /* show the lottie element when the mouse hovers over the heading */
}
This doesn’t work either…
When inspecting the element on frontend and manually change .header-anim > display: block my lottie animation appears.
But this element seems to have another class then the one I specified
Can someone point me in the right direction or is this a bug?
Thanks!