Words Rotator是一个jquery文本翻转动画效果插件,提供了不少例子。
$("#myWords").wordsrotator({
autoLoop: true, //auto rotate words
randomize: false, //show random entries from the words array
stopOnHover: false, //stop animation on hover
changeOnClick: false, //force animation run on click
animationIn: "flipInY", //css class for entrace animation
animationOut: "flipOutY", //css class for exit animation
speed: 2000, //delay in milliseconds between two words
words: ['apple', 'apricot', 'avocado'] //Array of words, it may contain HTML values
});
相关链接