Velocity.js让文字人工制品淡出

时间:2014-09-25 17:50:47

标签: javascript velocity.js

我很难理解为什么这会在元素替换HTML的位置顶部留下轻微的文本片段然后淡入。这就是代码:

$('.current-station-services li').on('click', function() {

    $(this).find('.status').velocity({
        opacity: 0
    },{
        duration: 100,
        complete: function() {
            $(this).html(data.test);
            $(this).velocity({
                opacity: 1
            })
        }
    });

});

这是输出的图像('yo!'上方的假象):

enter image description here

1 个答案:

答案 0 :(得分:1)

这是一个浏览器问题,而不是Velocity。随意向webkit / gecko提交错误报告。