How to disable "play { auto:true }", if screen width < 768px?

74 views
Skip to first unread message

Rinat Sadykov

unread,
May 19, 2017, 11:10:00 PM5/19/17
to SlidesJS
Hello, sorry for my english plz.
I have:
<code>
<script>
        $(function(){
          $("#mycarousel").slidesjs({
            width: 1300,
            height: 487,
            pagination: false,
            hoverPause: true,
            navigation: {
            active: true,
            effect: "slide"
              },
            play: {
            interval: 1000,
            auto: true,
            restartDelay: 2500,
            pauseOnHover: true
            }
            });
          });   
      </script>
</code>

When screen width < 768px, i need that "play { auto:true }" was disabled. Thanks!
Reply all
Reply to author
Forward
0 new messages