制作著名的 jQuery Flip 的任何方法!插件只影响文本?...就像看到文本实际旋转而不是消失然后在“旋转”结束时重新出现?
var $flipBox = $('span#flipbox'),
flip_opts = [{
direction: 'tb',
speed: 600,
content: "NUMBER TWO"
},
{
direction: 'tb',
speed: 600,
content: "NUMBER 3"
},
{
direction: 'tb',
speed: 600,
content: "NUMBA 4"
}
],
curr_indx = 0,
timer = setInterval(function () {
if (curr_indx >= flip_opts.length) {
curr_indx = 0;
}
$flipBox.flip(flip_opts[curr_indx]);
curr_indx++;
}, 3000);
小提琴:http: //jsfiddle.net/Ws6sS/
它设置在计时器上