-1
wanted to know if it is possible in addeventlistener as example "animationend" I initialize a variable as false until the end of the animation, and when the animation is finished it changes to True. I don’t know how to implement this
or in "mouseenter", when the mouse was over the element, the variable was True, and when outside the element, false.
I would like to have these variables to use them to fire other animations if the corresponding variable was true!
example
element.addEventListener('animationend', function(){
//Código a ser executado quando a animação terminar
};
if(estado == true){ // estado que se encontra a variável que possui o valor do addEventListener
//Código a ser executado caso o animationend tenha terminado
}