Lay Theme Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    autoplay on fullscreen slider

    Addons
    3
    9
    33
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      minutes last edited by

      Hi there, is autoplay possible on Fullscreen Slider? Perhaps with some custom css? Thank you.

      K 1 Reply Last reply Reply Quote 0
      • K
        kalamakumaran @minutes last edited by kalamakumaran

        @minutes

        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>
        
        M 1 Reply Last reply Reply Quote 0
        • M
          minutes @kalamakumaran last edited by

          @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.

          K 1 Reply Last reply Reply Quote 0
          • K
            kalamakumaran @minutes last edited by

            @minutes

            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>
            
            
            M 1 Reply Last reply Reply Quote 1
            • M
              minutes @kalamakumaran last edited by

              @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!

              K 1 Reply Last reply Reply Quote 0
              • K
                kalamakumaran @minutes last edited by

                @minutes

                Pm!

                1 Reply Last reply Reply Quote 0
                • arminunruh
                  arminunruh Global Moderator last edited by arminunruh

                  <script>
                      window.laytheme.on("newpageshown", function(){
                          setInterval(function () {
                      jQuery.fn.fullpage.moveSlideRight();
                              }, 10000);
                      });
                  </script>
                  
                  K M 2 Replies Last reply Reply Quote 1
                  • K
                    kalamakumaran @arminunruh last edited by

                    @arminunruh

                    Ah Great. Didn‘t know the sections are adressed as slides when using horizontal direction. Easy ;)

                    1 Reply Last reply Reply Quote 0
                    • M
                      minutes @arminunruh last edited by

                      @arminunruh Thanks a lot Armin, this works! :)

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Post a link to where the problem is if possible, please <3
                      I don't answer or check forum DMs, please just post on the forum.
                      Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com

                      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. When using a WordPress Cache plugin, disable it or clear your cache. Now see if your problem solved itself.
                      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

                      Thanks!

                      Online Users

                      A

                      Recent Topics

                      • Search as icon instead of text?

                      • FILTER Categories showing all projects

                      • H

                        Vimeo embed with autoplay and loop is really slow...help!

                      • A

                        website not loading on iphone safari

                      laytheme.com