文本

时间:2017-09-06 10:11:23

标签: jquery jquery-ui animation text

我写了这个函数,通过水平滑动使一些文本连续显示和隐藏。问题是滑动文本后面的文本保持在同一位置,中间有一个白色块,而我希望它“跟随”,所以我有:

HELLO

HELO

HEO

HO

HELO

HELLO

H<span class="animatedText">ELL</span>O
function animate() {
  $('.animatedText').show("slide", { direction: "left" }, 1500, function(){
    $(this).hide("slide", {direction: "left"}, 1500, animate);
  });
}

0 个答案:

没有答案
相关问题