CSS Animation Techniques
Animating elements with CSS, from timing functions to keyframe sequencing.
Content tagged css-animation
Snippet:SVG Marching Ants Border for Drop Zones and Selections
Animate a marching dashed SVG border around any box.Build a marching ants border with an SVG rect and stroke-dashoffset: a seamless loop, a crisp overlay for any box size, and reduced-motion support.Snippet:SVG Three-Dot Loading Indicator with Staggered Delays
Build a three-dot SVG loader with staggered delays.Build an accessible three-dot SVG loading indicator: three circles, one keyframes rule and negative animation-delay values, with reduced-motion support.Snippet:CSS & SVG Loading Spinner from One Circle
Build an SVG loading spinner from one circle.Build an accessible SVG loading spinner from one circle: pathLength and stroke-dasharray draw the arc, CSS spins it, with reduced-motion support.Post:CSS
@starting-styleEntry Animations: Practical PatternsBuild cards, toasts, and menus with reusable entrances.Reusable @starting-style entry animation patterns: cards, toasts, sidebars, dropdowns, accordions, chat messages, and framework-rendered lists.Post:Mastering CSS
@starting-style: The Complete Beginner's GuideGive entering elements a real "before" to animate.Why CSS transitions skip an element's first render, and how the @starting-style at-rule fixes it — syntax, the cascade, and fade, slide, and scale-in examples.