Commit cb231207 by doszhang

dos

parent dedc95d2
......@@ -95,7 +95,7 @@ $(document).ready(function () {
$('.flag-page .btn-change').on('click', randomFlag);
//选择flag
$('.flag-page .flag-block').on('click', {
that: this
that: 1
}, addFlag);
});
......@@ -152,10 +152,10 @@ function fadeInTextUp(text, fadeTime, divName) {
//为每个文字设置初始位置并将opacity设置为0,执行fadeTime制定的fadein
$(divName + ' .fly' + i).css('transform', 'translateY(' + RandomNumBoth(22, 25) + 'rem)').fadeOut(0).fadeIn(fadeTime);
}
// setTimeout(function () {
// //待动画执行完毕后删除动画div,将文字合并
// $(divName).text(text);
// }, 3000);
setTimeout(function () {
//待动画执行完毕后删除动画div,将文字合并
$(divName + ' .flag-text').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