CSS generator guides

Create a three-stop CSS entrance animation

·

Give a card a short entrance that starts below its final position, moves just above it and settles. A third keyframe lets you edit that middle state independently of the endpoints.

CSS Animation Generator

Set a name and playback timing

Open CSS Animation Generator and choose Slide up. Change the name to card-entrance, duration to 0.6 seconds and delay to 0.1 seconds. Keep one iteration, ease-out and both for fill mode.

The preset starts with opacity 0 and a vertical offset of 40 pixels. The 100% stop finishes at the element's resting position with full opacity.

W3C CSS Animations Level 1, keyframes and animation properties

Add a 70% stop above the resting position

Press Add stop and set the new offset to 70. Set Move Y to -6 and opacity to 1. Scrub to 70% to see the card above center, then scrub to 100% and verify that it returns to center.

Select Play animation to review the delay, direction, timing and finish together. If your browser requests reduced motion, use the scrub control to inspect each state without autoplay.

W3C CSS Animations Level 1, keyframes and animation propertiesW3C Media Queries, prefers-reduced-motion

Apply the generated class to your card

Copy the CSS or download card-entrance.css. The CSS includes a @keyframes rule with 0%, 70% and 100%, and an .animate-card-entrance rule with the playback settings.

Include the stylesheet in your project and add animate-card-entrance to your card. Keep the reduced-motion rule for visitors who ask their browser to reduce movement.

W3C CSS Animations Level 1, keyframes and animation propertiesW3C Media Queries, prefers-reduced-motion

Common questions

Can the middle stop go before an earlier row?

Yes. Give it a unique offset and the exported CSS will sort the rules by offset.

Does scrubbing include the delay or repeated plays?

Scrubbing shows one forward pass between the keyframes. Use Play animation to check the configured delay, repeats and direction.

Sources

Put it into practice.

Related guides