A worked example, rendered from real sample data. Sign in to run the tool on your own input.
fadeSlideIn
0% opacity:0; transform:translateY(20px)
100% opacity:1; transform:translateY(0)@keyframes fadeSlideIn {
0% {
opacity:0;
transform:translateY(20px);
}
100% {
opacity:1;
transform:translateY(0);
}
}
.fadeSlideIn {
animation: fadeSlideIn 600ms ease 0ms 1 normal both;
will-change: transform, opacity;
}
@media (prefers-reduced-motion: reduce) {
.fadeSlideIn {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
/* HTML: <div class="fadeSlideIn">Content</div> */
Generate @keyframes animations from step definitions. Part of the DevTools Surf developer suite. Browse more tools in the Animation / CSS collection.