Image Hover - right/left background - row or viewport height?
-
Hi Armin,
Do the effects of Image Hover Right and Left Background refer to the height of the entire viewport or just the specific row of the element? Right now, it’s working based on the full viewport height, but I’d like to have control over this or at least make it reference the row instead.
What do you think?
Best,
-
it references the whole browser
-
.lay-imagehover-on-element[data-imageposition=rightbackground], .lay-imagehover-on-element[data-imageposition=leftbackground]{ position: absolute; overflow: hidden; bottom: 0; top: 0; } .lay-imagehover-on-element[data-imageposition=rightbackground] img, .lay-imagehover-on-element[data-imageposition=rightbackground] video, .lay-imagehover-on-element[data-imageposition=leftbackground] img, .lay-imagehover-on-element[data-imageposition=leftbackground] video{ height: 100%; }
Enter this css in "lay options" -> "custom css & html" -> "custom css for desktop"
to make it reference only its containing row
-
Thanks Armin! I think it would be cool to incorporate this setting natively, even though fixing the code is easy.
24 days ago
1/4
23 days ago
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
Forgot your key, lost your files, need a previous Lay Theme or Addon version?
Go to www.laykeymanager.com