Fullscreen-Slider: move section up?
-
Hello,
is there a JS-code to move one section up in the fullscreen-slider? Like this code moves one section down:
jQuery.fn.fullpage.moveSectionDown();
Thank you, regards
Arne -
-
Hello Marius.
I can't really follow you… Is that based on LayTheme? I was specially looking for a LayTheme-solution. Of course I know other scrolling website solutions but since there is a dedicated "moveSectionDown();" in LayTheme, I thought there might be the same for the other direction?
Cheers, Arne
-
Well I guess that that’s the Slider implemented into lay. All the functions are listed here: https://alvarotrigo.com/fullPage/examples/methods.html
And yes, it seems like there’s a dedicated function for your needs.Cheers!
-
Thanks edgrbnz! I got it now:
<script>
window.laytheme.on("newpage", function(layoutObj, type, obj){
jQuery("body").on("click", "#topframe", function(){
jQuery.fn.fullpage.moveSectionUp(1);
});
});
</script>This works for me. I had to add the "1" to jQuery.fn.fullpage.moveSectionUp(1);
Thanks for the help!
-
Hey @ArneRobot
great! Happy to hear!!Marius
Before you post
Use the Search Feature. Maybe there is already a solution to your issue.
1. Update Lay Theme and all Lay Theme Addons
2. Disable all Plugins
3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
4. Now see if your problem solved itself
5. Go here, see if your problem is listed here:
Troubleshooting
When you post:
1. Post a link to where the problem is
2. If the problem is difficult to explain, post screenshots / link to a video to explain it