autoplay on fullscreen slider
-
-
Hi there, is autoplay possible on Fullscreen Slider? Perhaps with some custom css? Thank you.
if you are using the vertical direction of the fullscreen slider put this in Custom <head> content
<script> window.laytheme.on("newpageshown", function(layoutObj, type, obj){ slideTimeout = setInterval(function () { jQuery.fn.fullpage.moveSectionDown(); }, 10000); }); </script> -
if you are using the vertical direction of the fullscreen slider put this in Custom <head> content
<script> window.laytheme.on("newpageshown", function(layoutObj, type, obj){ slideTimeout = setInterval(function () { jQuery.fn.fullpage.moveSectionDown(); }, 10000); }); </script>@kalamakumaran thanks a lot for your response! What about if the direction is horizontal? I'd like to keep it horizontal because of some other settings I'm using.
-
@kalamakumaran thanks a lot for your response! What about if the direction is horizontal? I'd like to keep it horizontal because of some other settings I'm using.
try this. haven't tested it. maybe it works ;)
<script> window.laytheme.on("newpageshown", function(layoutObj, type, obj) { var slideTimeout; function moveHorizontalSection() { var activeSection = jQuery.fn.fullpage.getActiveSection(); var nextSection = activeSection.index() + 1; if (nextSection <= jQuery.fn.fullpage.getSections().length) { jQuery.fn.fullpage.moveTo(nextSection, 0); } else { jQuery.fn.fullpage.moveTo(1, 0); } } slideTimeout = setInterval(moveHorizontalSection, 10000); }); </script> -
try this. haven't tested it. maybe it works ;)
<script> window.laytheme.on("newpageshown", function(layoutObj, type, obj) { var slideTimeout; function moveHorizontalSection() { var activeSection = jQuery.fn.fullpage.getActiveSection(); var nextSection = activeSection.index() + 1; if (nextSection <= jQuery.fn.fullpage.getSections().length) { jQuery.fn.fullpage.moveTo(nextSection, 0); } else { jQuery.fn.fullpage.moveTo(1, 0); } } slideTimeout = setInterval(moveHorizontalSection, 10000); }); </script>@kalamakumaran thank you for that – I did try but it didn't work for me unfortunately. If you have any other tips or tricks that would be greatly appreciated. Thanks again!
-
@kalamakumaran thank you for that – I did try but it didn't work for me unfortunately. If you have any other tips or tricks that would be greatly appreciated. Thanks again!
Pm!
-
<script> window.laytheme.on("newpageshown", function(){ setInterval(function () { jQuery.fn.fullpage.moveSlideRight(); }, 10000); }); </script> -
<script> window.laytheme.on("newpageshown", function(){ setInterval(function () { jQuery.fn.fullpage.moveSlideRight(); }, 10000); }); </script>Ah Great. Didn‘t know the sections are adressed as slides when using horizontal direction. Easy ;)
-
<script> window.laytheme.on("newpageshown", function(){ setInterval(function () { jQuery.fn.fullpage.moveSlideRight(); }, 10000); }); </script>@arminunruh Thanks a lot Armin, this works! :)
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login