How do I get a flex box to not be part of the page until I fade it in? I used to do this with \'display: 0;\' and then use jquery .fadeIn(). But now if I set display to 0, when
Easiest and most clean way (if you can edit DOM) is to wrap the element, and fade the wrapper while having div with flex inside
css: .popup { display: none; } .popup__flexbox { display: flex; } js: $("#popupContainer").fadeIn(); 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
css:
.popup { display: none; } .popup__flexbox { display: flex; }
js:
$("#popupContainer").fadeIn();