javascriptcssgoogle-chromeanimationdeveloper-tools

Is there a keyboard shortcut for the "pause animation" feature in Chrome Developer Tools? (F12)


There is a nifty feature in Chrome's Developer Tools which allows you to pause animations and control their speed, but the problem is they're mouse-controlled buttons. Sometimes I need to pause an animation without actually moving the mouse cursor to inspect something inside a hover-activated animation, so I can't really use the pause button. Is there a keyboard shortcut for that animation pause button so I don't need to move the cursor off whatever I'm doing?


Solution

  • Updated answer

    You can trigger animation with "Toggle Element State" option, or from JavaScript in console, without using mouse. Also, once you're in debugger; mode, inspecting should not trigger events.


    Old answer:

    (general info about debugging animations)

    CSS3

    https://developers.google.com/web/tools/chrome-devtools/inspect-styles/animations

    JavaScript

    You can create breakpoints every frame, or every couple of frames.