0
I saw that the angular-Animate can detect when a CSS transaction is in progress or not to apply certain actions.
I need to find out how they do it!
Example:
#square{
background-color: tomato;
height: 100px;
width: 100px;
font-weight: bold;
color: white;
display: flex;
justify-content: center;
align-items: center;
font-family: sans-serif;
transition: background-color .2s linear, color 1s ease-out;
}
#square:hover{
background-color: white;
color: tomato;
}
<div id="square">
SQUARE
</div>
How to detect the end of an animation transition in Javascript Puro?
Answers with jQuery are not welcome :D
https://developer.mozilla.org/en-US/docs/Web/Events/transitionend
– bfavaretto
Possible duplicate of Css3 stop after finishing rotation?
– Sam
I don’t understand the "Answers with jQuery are not welcome :D" part, even if the question is yours, isn’t it for the good of the community? And if someone is looking for a solution for jQuery?
– Raizant
@Raizant did this because there is always a smart guy who put answers that has nothing to do with what was asked to gain easy point. Someone might as well put a
fadeOut
kkkkkk– Wallace Maxters