Answer the question
In order to leave comments, you need to log in
How to run script before css transition starts?
Due to the fact that the css animation comes first, and the script is executed later, the page twitches (we smoothly open the block with the transition, and the script fixes the block in the center so that the opened content does not push the block header up).
If I put the script in the header of the page - everything is ok. But this is very undesirable, as you understand (the main script file is included before </body>
).
How can I set the order of execution in this case?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question