From 1b298ca0d6c1e9c90da5882c383ba89bf39efcb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Guillot?= Date: Fri, 1 Feb 2013 10:32:18 +0100 Subject: [PATCH 1/2] jQuery.cycle definitions file. --- jquery.cycle/jquery.cycle-tests.ts | 324 +++++++++++++++++++++++++++++ jquery.cycle/jquery.cycle.d.ts | 93 +++++++++ 2 files changed, 417 insertions(+) create mode 100644 jquery.cycle/jquery.cycle-tests.ts create mode 100644 jquery.cycle/jquery.cycle.d.ts 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('