Stay organized with collections Save and categorize content based on your preferences.
Inspect and modify animations with the Chrome DevTools Animations drawer tab.
OverviewTo capture animations, open the Animations panel. It automatically detects animations and sorts them into groups.
The Animations panel has two main purposes:
The Animations panel supports CSS animations, CSS transitions, web animations, and the View Transitions API. requestAnimationFrame
animations are not yet supported.
An animation group is a set of animations that appear to be related to each other.
For now, the web has no real concept of a group animation, so motion designers and developers compose and time individual animations to appear as one coherent visual effect. The Animations panel predicts related animations based on start time (excluding delays) and groups them side-by-side.
In other words, the Animations panel groups together animations triggered in the same script block, but if they're asynchronous, they end up in different groups.
Open the Animations panelThere are two ways to open the Animations panel:
Open the Command Menu by pressing one of the following:
Then start typing Show Animations
and select the corresponding Drawer panel.
By default, the Animations panel opens up as a tab next to the Console drawer. As a drawer tab, you can use it with any panel or move it to the top of DevTools.
The Animations panel automatically captures ongoing animations when you open it. If an animation is triggered on page load or has already stopped, reload the page with the panel open.
Get familiar with the Animations panel UIThe Animations panel has four main sections:
Overview. Shows captured animation groups of two types marked with icons: mouse scroll-driven and schedule regular (time-based).
Select an animation group here to inspect and modify it in the Details pane.
Timeline. Depending on the type of animation group, the timeline can be:
In the timeline, you can replay Replay an animation, scrub it, or jump to a specific point.
Details. Inspect and modify the selected animation group.
To capture an animation, trigger it while the Animations panel is open.
Inspect animationsOnce you've captured an animation, there are a few ways to replay it:
Click the Animation speed buttons in the Controls bar to change the preview speed of the selected animation group.
View animation detailsOnce you've captured an animation group, click it from the Overview pane to view its details.
In the Details pane, each individual animation gets its own row. To see the entire name of the corresponding element, resize the name column.
Hover over an animation to highlight it in the viewport. Click the animation to select it in the Elements panel.
Some animations repeat indefinitely if their animation-iteration-count
property is set to infinite
. The Animations panel displays their definitions and iterations.
The leftmost, darker section of an animation is its definition. The right, more faded sections represent iterations.
For example, in the next screenshot, sections two and three represent iterations of section one.
If two elements have the same animation applied to them, the Animations panel assigns them the same color. The color itself is random and has no significance. For example, in the screenshot below the two elements div.eye.left::after
and div.eye.right::after
have the same animation (eyes
) applied to them, as do the div.feet::before
and div.feet::after
elements.
There are three ways you can modify an animation with the Animations panel:
For this section, suppose that the next screenshot represents the original animation:
To change the duration of an animation, drag the first or last circle.
If the animation defines any keyframe rules, then these are represented as white inner circles. Drag one of these to change the timing of the keyframe.
To add a delay to an animation, click the animation itself, not the circles, then drag it anywhere.
Edit@keyframes
live
When you modify @keyframes
in Styles, you can see the effects in the Animations panel right away.
Try it on this demo page:
class="pulser"
and, in Styles, find the @keyframes pulse
section.50%
to 20%
.::view-transition
pseudo-elements during an animation
With the View Transitions API, you can change the DOM in a single step, while creating an animated transition between the two states. During an animation, the API constructs a pseudo-element tree with the following structure:
::view-transition
└─ ::view-transition-group(root)
└─ ::view-transition-image-pair(root)
├─ ::view-transition-old(root)
└─ ::view-transition-new(root)
To edit this structure in Elements > Styles:
On the page, trigger an animation. The Animations panel captures it and immediately pauses. You can now find the ::view-transition
structure in the DOM, on top of the <head>
element.
In Elements > Styles, modify the CSS of ::view-transition
pseudo-elements.
Resume the animation and Replay it to see the result.
For more information, see Smooth and simple transitions with the View Transitions API.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-04-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-16 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4