diff --git a/jquery.cycle/jquery.cycle-tests.ts b/jquery.cycle/jquery.cycle-tests.ts new file mode 100644 index 0000000000..2b5bd668e5 --- /dev/null +++ b/jquery.cycle/jquery.cycle-tests.ts @@ -0,0 +1,324 @@ +/// +/// + +// As basic as it can be +$('#element').cycle(); + +/* Beginner Demos */ + +$('#s1').cycle('fade'); + +$('#s2').cycle({ + fx: 'scrollDown' +}); + +$('#s3').cycle({ + fx: 'fade', + speed: 2500 +}); + +$('#s4').cycle({ + fx: 'scrollDown', + speed: 300, + timeout: 2000 +}); + +$('#s5').cycle({ + fx: 'fade', + pause: true +}); + +$('#s6').cycle({ + fx: 'scrollDown', + random: true +}); + +/* Intermediate Demos (Part 1) */ +$('#s1').cycle({ + fx: 'zoom', + easing: 'easeInBounce', + delay: -4000 +}); + +$('#s2').cycle({ + fx: 'scrollDown', + easing: 'easeOutBounce', + delay: -2000 +}); + +$('#s3').cycle({ + fx: 'zoom', + sync: false, + delay: -4000 +}); + +$('#s4').cycle({ + fx: 'scrollDown', + sync: false, + delay: -2000 +}); + +$('#s5').cycle({ + fx: 'shuffle', + delay: -4000 +}); + +$('#s6').cycle({ + fx: 'shuffle', + shuffle: { + top: -230, + left: 230 + }, + easing: 'easeInOutBack', + delay: -2000 +}); + +/* Intermediate Demos (Part 2) */ + +$('#s1').cycle({ + fx: 'slideY', + speed: 300, + next: '#s1', + timeout: 0 +}); + +$('#s2').cycle({ + fx: 'fade', + speed: 'fast', + timeout: 0, + next: '#next2', + prev: '#prev2' +}); + +$('#s3').cycle({ + fx: 'fade', + speed: 300, + timeout: 3000, + next: '#s3', + pause: true +}); + +$('#s4') +.before('