jQuery翻转!插件仅供文字使用?

时间:2012-10-20 04:12:34

标签: jquery jquery-plugins plugins flip

任何方式来制作着名的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/

它设置在计时器上

1 个答案:

答案 0 :(得分:0)

Ohgodwhy回答 - 不可能......“它会添加一个具有相同尺寸/背景大小的新元素,然后将元素动画化为自身并再次退出;然后它会移除它自己并显示下一个元素“