Requirements: jQuery Core (latest), jQuery Easing Plugin (http://gsgd.co.uk/sandbox/jquery/easing/)
Download JS: sexyCycle.js
Download CSS: sexyCycle.css
Examples: Timer, Random
How to use below:
$("#box0").sexyCycle();
$("#box1").sexyCycle({
easing: 'easeInOutBounce',
next: '.next1',
prev: '.prev1'
});
$("#box2").sexyCycle({
easing: 'easeOutElastic',
speed: 800,
next: '.next2',
prev: '.prev2',
cycle: false
});
$("#box3").sexyCycle({
speed: 500,
next: '.next3',
prev: '.prev3',
start: 2
});
$("#box4").sexyCycle({
speed: 500,
next: '.next3',
prev: '.prev3',
stop: '.stop',
interval: 800
});
代码整理:时代Java(NowJava.com)
转载请注明出处,此代码仅供学习交流,请勿用于商业用途。