I have the following html:
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Slider</title>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.12.1.js"></script><scripttype="text/javascript" src="js/jquery.cycle.js"></script>
<script type="text/javascript" src="js/script.js"></script>
<style>
* {
margin: 0 auto;
padding: 0;
}
body {
width: 80%;
}
.box {
width: 300px;
height: 187px;
overflow: hidden;
}
</style>
</head>
<body>
<div class="box">
<img src="img/1.png" width="300px" class="slide" />
<img src="img/2.jpg" width="300px" class="slide" />
<img src="img/3.jpg" width="300px" class="slide" />
<img src="img/4.png" width="300px" class="slide" />
<img src="img/5.jpg" width="300px" class="slide" />
</div>
</body>
</html>
And JScript
$('.box').cycle({
fx: 'shuffle',
easing: 'easeOutBack',
delay: -4000
});
If I put:
$('.box').cycle();
It works.
But if I put it
$('.box').cycle({
fx: 'shuffle',
easing: 'easeOutBack',
delay: -4000
});
It stops at the first photo and the banner does not rotate.
If I do:
$('.box').cycle({
fx: 'shuffle'
});
It also works but with the default effect.
Where am I going wrong?