Debug CSS animation with Chrome Devtools

FredVDH picture FredVDH · Oct 21, 2014 · Viewed 19.7k times · Source

Is it possible to view or debug the steps a single element takes when in a transition-css animation? I'm working with Chrome Dev Tools, but I'm pretty new at it. I googled it and saw something from the timeline, but I don't find the step by step things.

My animation starts at 0%, and goes to 100%, but there seems to be something strange around 50%, although the 50% step is not declared. That's why I would like to view what's going on.

Answer

user3638471 picture user3638471 · Jul 7, 2016

Yes it's possible.

It is possible to debug transitions and CSS animations with Chrome DevTools. Just click this button:

Image describing the location of the "Animations" tab activation button

Then, an "Animations" tab will open in the Console panel (you can open it by pressing Esc if you have DevTools focused - just click on DevTools to focus it):

enter image description here