G
G
Gagatyn2018-03-04 17:13:25
JavaScript
Gagatyn, 2018-03-04 17:13:25

How to separate events so that they work separately?

Hello!
Got confused a little. Can't separate click events to play a gif, so to speak.
I did it for everyone and specifically by id. But they start playing at the same time.
https://jsfiddle.net/grizz/utbv65u4/1/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2018-03-04
@KickeRockK

You can give them all one class and when clicked, tell them to stop and play this'a.
Ah, there's Pure.
Then each'om find all the elements and when you click - turn off everything and then already look for the right one, in which you go-click.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question