Skip to main content

Harshal V. LADHE

Animating with CSS @keyframes

Using the `@keyframes` at-rule to build multi-step, self-running animation timelines, independent of `:hover` or other state-driven transitions.

Content tagged keyframes

  • 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.
    Published at:
    Categories:SVG
    Estimated reading time:7 min read
  • 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.
    Published at:
    Categories:SVG
    Estimated reading time:7 min read
  • 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.
    Published at:
    Categories:SVG
    Estimated reading time:6 min read
  • Post:Advanced CSS @starting-style: Performance & Accessibility

    Series:CSS @starting-style: From First Render to Production (4/4)
    Ship smooth, accessible, framework-friendly CSS entry animations.
    Keep @starting-style fast and accessible: rendering performance, prefers-reduced-motion, framework use, and comparisons with @keyframes and View Transitions.
    Published at:
    Categories:Animations
    Estimated reading time:27 min read
  • Tutorial:Animate and Type-Check CSS Variables with @property

    Give CSS custom properties real types so they animate.
    Register CSS custom properties (CSS variables) with @property — a syntax, an inherits rule and an initial value — so they animate in transitions and keyframes, fall back safely on invalid values and always have a default. Covers rotating gradients, counting numbers and per-axis motion, CSS.registerProperty(), performance, browser fallbacks and common pitfalls.
    Published at:
    Categories:CSS
    Estimated reading time:8 min read