Answer the question
In order to leave comments, you need to log in
How to animate the appearance of an element?
Hello. How to animate an element inserted into the DOM? I'm trying to do it by analogy as here - https://github.com/twbs/bootstrap/blob/v4-dev/js/s...
It seems that there is no special magic, there is no setTimeout() either. But there the animation works out.
https://jsfiddle.net/p9f7cteL/7/
Answer the question
In order to leave comments, you need to log in
It uses Util.reflow
The option with setTimeout 0 works fine https://jsfiddle.net/jjr9zpt4/
But you can do it without the timeout https://jsfiddle.net/jjr9zpt4/1/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question