0
How is it possible to make a .trigger
without using jQuery?
For example, I saw that it is possible with the event
click
use the element.click();
, but when the event
is animationend
?
In jQuery, it would be equivalent to: $( "#element" ).trigger( "animationend" );
your question missing details to answer, has some example?
– novic
take a look at the source code of jquery to understand and do what you want, it’s all on github: https://github.com/jquery/jquery/blob/40c3abd0ab049449acab5f2e12c34b9cc3199482/src/event/trigger.js
– Ricardo Pontual