How stop keyframe Animation exactly after 1 second without to use setTimeout ? - Problem events on queue
I think this will be a problem really difficult to solve... I created a speedometer that shows number of earthquakes occured in my city. I want to animate this speedometer in two way: background-color (green when there aren't quakes and red when there are 3000 quakes) and width of this colored div (the div where i animate background-color). So the width will be 0 when there aren't quakes and will be 100% when there are 3000 quakes. The animation is 2 seconds, so for example if i have 1500 quakes: Add the class for animate speedometer $('#first').addClass('first-start'); And using setTimeout i