Inspect and modify CSS animation effects

Inspect and alter CSS blitheness furnishings by using the Animation Inspector in the Animations tool.

The Animations tool.

Summary

  • Capture animations by opening the Animations tool. The Animations tool automatically detects and sorts animations into groups.

  • Inspect animations by slowing downward each one, replaying each 1, or viewing the source code.

  • Modify animations past changing the timing, delay, duration, or keyframe offsets.

Overview

The Animations tool has ii main purposes:

  • Inspecting animations. Yous tin can irksome down, replay, or inspect the source code for an Animation Grouping.

  • Modifying animations. You lot want to modify the timing, delay, duration, or keyframe offsets of an Animation Group. Bezier editing and keyframe editing are currently not supported.

The Blitheness Inspector supports CSS animations, CSS transitions, and spider web animations. requestAnimationFrame animations are currently not supported.

What's an Blitheness Group?

An Animation Group is a group of animations that may be related to each other. Currently, the web has no existent concept of a group animation, so motion designers and developers have to compose and fourth dimension individual animations so that the animations render as one coherent visual effect. The Blitheness Inspector predicts which animations are related based on start time (excluding delays, and and so on). The Animation Inspector also groups the animations side-by-side.

In other words, a set of animations that are all triggered in the aforementioned script block are grouped together. If an blitheness is asynchronous, it is placed in a carve up grouping.

Get started

To open the Animation Inspector, use any of these approaches, in DevTools:

  • From the main toolbar or on the Drawer: click the More Tools (More Tools icon.) button, and and so select Animations.

    Animations using Main Menu.

  • From the Customize menu: Click the Customize and control DevTools (Customize icon.) carte du jour button, signal to the More than tools sub-menu, and so select Animations.

  • From the Command Menu: When DevTools has focus, press Shift+Ctrl+P on Windows/Linux or Command+Shift+P on macOS to open the Command Card, start typing animations, and and so select Drawer: Show Animations.

By default, the Animations tool opens in the Drawer, next to the Panel tool. Past using the Animations tool on the Drawer, you can use it at the same time equally using another tools on the main toolbar.

Empty Animation Inspector.

The Blitheness Inspector is grouped into four main sections (or panes). This guide refers to each pane as follows:

Index Pane Description
1 Controls From here yous tin can clear all currently captured Animation Groups, or alter the speed of the currently selected Animation Group.
ii Overview Select an Animation Group hither to inspect and modify it in the Details pane.
three Timeline Pause and kickoff an animation from here, or leap to a specific indicate in the animation.
4 Details Inspect and modify the currently selected Animation Group.

Annotated Animation Inspector.

To capture an animation, but perform the interaction that triggers the animation while the Animation Inspector is open. If an animation is triggered on page load, refresh the page with the Animation Inspector open to detect the animation.

Inspect animations

After you lot capture an animation, there are a few means to replay information technology:

View animation details

Later yous capture an Animation Group, click on it from the Overview pane to view the details. In the Details pane, each individual blitheness is assigned to a row.

Animation Group details.

Hover on an blitheness to highlight it in the viewport. Click on the blitheness to select it in the Elements tool.

Hover on the animation to highlight it in viewport.

The leftmost, darker section of an blitheness is its definition. The right, more faded section represents iterations. For example, in the following figure, sections two and iii correspond iterations of department ane:

Diagram of animation iterations.

If 2 elements accept the aforementioned animation applied to them, the Blitheness Inspector assigns the same color to the elements. The colour is random and has no significance. For example, in the following figure, the two elements div.cwccw.before and div.cwccw.after have the same animation (spinrightleft) applied, as exercise the div.ccwcw.earlier and div.ccwcw.afterwards elements.

Color-coded animations.

Modify animations

At that place are 3 ways you can modify an animation with the Animation Inspector:

  • Animation duration.
  • Keyframe timings.
  • Start fourth dimension delay.

For this department, suppose that the screenshot below represents the original animation:

Original animation before modification.

To change the duration of an animation, click and drag the offset or concluding circle.

Modified duration.

If the blitheness defines whatsoever keyframe rules, then these are represented every bit white-filled inner circles. Click and elevate a white-filled inner circle to alter the timing of the keyframe:

Modified keyframe.

To add together a filibuster to an blitheness, click the animation anywhere except the circles, and drag it:

Modified delay.

Creative Commons License. This work is licensed under a Creative Eatables Attribution 4.0 International License.