Commit 532e40a6 by doszhang

dos

parent ca4c468f
......@@ -142,12 +142,12 @@ function fadeInTextUp(text, fadeTime, divName) {
//遍历数组添加到目标div中
$(divName).append($('<div class="fly' + i + '">' + textArr[i] + '</div>'));
//为每个文字设置初始位置并将opacity设置为0,执行fadeTime制定的fadein
$('.fly' + i).css('transform', 'translateY(' + RandomNumBoth(300, 500) + 'px)').fadeOut(0).fadeIn(fadeTime);
// $('.fly' + i).css('transform', 'translateY(' + RandomNumBoth(300, 500) + 'px)').fadeOut(0).fadeIn(fadeTime);
}
setTimeout(function () {
//待动画执行完毕后删除动画div,将文字合并
$(divName).text(text);
}, 3000);
// setTimeout(function () {
// //待动画执行完毕后删除动画div,将文字合并
// $(divName).text(text);
// }, 3000);
}
function getTranslateDistance(cardinal = 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment