I am trying to make autoplay work on a simple SlidesJS carousel: /
I checked out some other threads that answer similar problems but the solutions provided aren't working? Here is the script that is included in the file:
<script src=".9.1.min.js"></script>
<script src="/scripts/jquery.slides.min.js"></script>
<script>
$(function()
{
$('#slides').slidesjs(
{
play: 1000,
pause: 10,
hoverPause: true,
width: 960,
height: 540,
navigation:
{
effect: "fade"
},
pagination:
{
effect: "fade"
},
effect:
{
fade:
{
speed: 400
}
}
});
});
</script>
Any thoughts or ideas would be greatly appreciated.
I am trying to make autoplay work on a simple SlidesJS carousel: http://www.cycle22x./
I checked out some other threads that answer similar problems but the solutions provided aren't working? Here is the script that is included in the file:
<script src="http://code.jquery./jquery-1.9.1.min.js"></script>
<script src="/scripts/jquery.slides.min.js"></script>
<script>
$(function()
{
$('#slides').slidesjs(
{
play: 1000,
pause: 10,
hoverPause: true,
width: 960,
height: 540,
navigation:
{
effect: "fade"
},
pagination:
{
effect: "fade"
},
effect:
{
fade:
{
speed: 400
}
}
});
});
</script>
Any thoughts or ideas would be greatly appreciated.
Share Improve this question edited Jan 20, 2014 at 4:21 Lee Taylor 7,99416 gold badges37 silver badges53 bronze badges asked Jan 20, 2014 at 4:16 user3213741user3213741 331 silver badge5 bronze badges1 Answer
Reset to default 5you need to use auto: true
to make it autoplay, like:
...
$('#slides').slidesjs({
width: 940,
height: 528,
play: {
active: true,
auto: true,
interval: 4000,
swap: true,
pauseOnHover: true,
restartDelay: 2500
}
});
See here:: Example Autoplay