Commit 9d619466 by doszhang

dos

parent 6860eb02
......@@ -83,6 +83,7 @@ let flag = [
let flagStack = [];
let chooseNum = 0;
let oldRandFlag = [];
let first = true;
let flagTemplate = $('.flag-frame').find('.flag-block').clone();
$('.flag-frame').html('').addClass('clearfix');
......@@ -167,6 +168,11 @@ function createItem(flag, no) {
let item = flagTemplate.clone();
item.find('.flag-no').text(no);
item.find('.flag-text').append('<span>' + flag + '</span>').addClass('flag' + no);
if (!first) {
$('.flag-block').fadeOut(300);
item.find('.flag-line,.flag-no,.text-bottom').css('animation', 'none 0 ease 0 1 normal').delay(300).fadeIn(300);
}
first = false;
$('.flag-frame').append(item);
}
......
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