overflow scroll for one row in fullscreen slider
-
Hello!
I am working on this page which consists of a vertical fullscreen slider. All slides will be 100vh (pictures) except one of them containing a list of projects, which i would like to be higher than 100vh. In the link I'm sending, it is the 3rd row (the one with text).
I understand fullscreen slider doesn't allow some rows to be higher than others. But I was wondering if this could be a solution:
Could I have a long text overflowing a 100vh row (or a 100vh stack), and give this container the css rule "overflow: scroll !important;" so that when the row is on display the mouse scrolling affects the container and not the fullscreen slider, scrolling through the text until the text is finished, and then the next slider comes up?
Does this make sense, or would there be any other way to achieve this?
Thank you!
-
use this code!
custom css:
.fp-tableCell .row-inner{ height: 100svh; max-height: 100svh; overflow-y: scroll; -webkit-overflow-scrolling: touch; }
custom <head> content:
<script> jQuery(window).on('fpAfterSlideLoad', function(){ // everytime we go to the next slide, scroll to top again jQuery('.fp-tableCell .row-inner').scrollTop(0); }); </script>
-
o i think it only works if you use the horizontal slider
you use the vertical one, with this it wont work :/
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