How do I add a hover effect to a button within the LayerSlider? I have tried applying a unique class (ex: “custombuttonclass”) to the button layer (inside Link & Attributes panel) then declaring the hover state of the element in the Quick CSS field. Eg:
.custombuttonclass:hover {
background-color: blue;
color: orange;
}
But this is not working. I have attempted multiple css tricks but nothing has worked. Please help, this should be a simple thing to achieve.
Hey EnlightenedMedia,
Please try using the !important rule.
.custombuttonclass:hover {
background-color: blue !important;
color: orange !important;
}
Let us know if that works for you!
Best regards,
Sarah
Hi Sarah, I tried that but still nothing changes.
I found a solution within Layer Slider, so I don’t need to define a custom class.
This is what I did:
With the button layer selected, go to the Transitions tab and enable Hover. Within hover settings, set colors in the Style Properties box. In the Timing & Transitions box, alter the duration to 100 ms. And that’s it, now I have a hover effect on my button!
Great, and thank you for sharing!
Please let us know here in the forums if you need help with anything else.
Cheers!
Sarah