N
N
Nikolay2013-01-17 14:17:36
JavaScript
Nikolay, 2013-01-17 14:17:36

Javascript/jQuery animation stop?

Hey Habr!

Recently I encountered such a task that the animation in progress on jQuery needs to be stopped, subject: how it is done, in which direction to study the material. I will be glad to live examples so that you can see the code.

For a better understanding of what I mean, I show a video from which it can be seen that if you quickly click on the "search tools" button, the animation will not end, but go in the opposite direction. I really want to understand the technique of such an implementation.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
@
@mutant, 2013-01-17
@Piterski

Look towards the stop method .

P
Pavel Tyslyatsky, 2013-01-18
@tbicr

Look at www.w3schools.com/css3/css3_transitions.asp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question