M
M
Maxim2014-11-27 19:56:58
css
Maxim, 2014-11-27 19:56:58

How to use jQuery to track the end of css animation?

Example:
Let's say there is an element. A new class is superimposed on it, one of the properties of which is: "transform: translateX(100px)". The element is overlaid with "transition: transform 1s ease". Actually, after applying the class, the element will transform within 1 second.

Question:
How can I find out, through jQuery or pure javascript, that the animation time has elapsed and, after its expiration, make further changes to the element? Do not offer through timers, that's what I'm doing now. I think mb there is a more universal and simple solution? Through "elem.css('transition')" on jQuery is also not an option.

In general, what do you recommend?

Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
name surname, 2014-11-27
@MaxStrate

Maybe it's transitionEnd

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question