Jquery Delay After Click

前端 未结 7 1985
無奈伤痛
無奈伤痛 2020-12-29 08:58

I\'m creating a web app...

i got a kind of game, my idea is when the user completes each level appears a dialog box with some information, it is fine.

Now my

相关标签:
7条回答
  • 2020-12-29 09:28

    You can't delay an append. You can only delay animations. You could use setTimeout or show the element initially hidden and then fade it in:

    $('<div id="confirm" style="display:none"> ...')
        .appendTo(target)
        .delay(5000)
        .fadeIn(1000);
    
    0 讨论(0)
提交回复
热议问题