-1
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>
<script type="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 the Jscript
$('.box').cycle({
fx: 'shuffle',
easing: 'easeOutBack',
delay: -4000
});
If I put:
$('.box').cycle();
works.
But if I put
$('.box').cycle({
fx: 'shuffle',
easing: 'easeOutBack',
delay: -4000
});
Stand still in the first photo and the banner does not rotate.
If I do:
$('.box').cycle({
fx: 'shuffle'
});
It also works but with the standard effect.
Where am I going wrong?
I don’t know the plugin but where is this
fx: 'shuffle'
? I looked at the API the values for fx arefade
,fadeout
,none
andscrollHorz
. Others need to be included through plugins, are using something for this?– Renan Gomes
http://jquery.malsup.com/cycle/, see the middle of the page in the examples der banner. the first example is shuffle
– Carlos Rocha
Well, you marked the question with cycle2, That right there sent is the documentation of another version.
– Renan Gomes
Got it.But in this case, what should I do? I downloaded Cycle from version 1 and it still didn’t work. By the way, the version I passed the link is the Cycle 1 is not?
– Carlos Rocha