Change z-index of stacked elements on hover
-
Hi!
I'm looking to change the z-index of stacked elements (mostly carousels) on hover so that every element can be visible.
I have here an example here:.
https://debutdebut.com/simonhaemmerli/home-2I achived to make it work with the first element with additional css like
.stack-wrap:nth-child(1):hover > .stack-element { z-index: -1; }
but it's not working with:
.stack-wrap:nth-child(2):hover > .stack-element { z-index: -1; }
maybe there is also a js approach to this?
Thx for any feedback.Cheers
Max -
Dear @debutdebut
you can give each element an ID.Then you can address them individually.
Hope that helps!
Marius
-
@mariusjopen thx! Will try this approach
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it
Online Users
Forgot your key, lost your files, need a previous Lay Theme or Addon version?
Go to www.laykeymanager.com