<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/scrubbable-staggered-animation-with-css-function-frontend-masters-blog-1fvbhiwqv" -->

---
title: Scrubbable Staggered Animation with CSS @function –...
description: A deep dive into creating scrubbable staggered animations using a single progress value instead of per-element animation delays. The technique uses a...
canonical: https://daily.dev/posts/scrubbable-staggered-animation-with-css-function-frontend-masters-blog-1fvbhiwqv
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Scrubbable Staggered Animation with CSS @function – Frontend Masters Blog | daily.dev
og:description: A deep dive into creating scrubbable staggered animations using a single progress value instead of per-element animation delays. The technique uses a...
og:url: https://daily.dev/posts/scrubbable-staggered-animation-with-css-function-frontend-masters-blog-1fvbhiwqv
og:image: https://api.daily.dev/og/posts/1FvBhIWqV.png
og:image:alt: Scrubbable Staggered Animation with CSS @function – Frontend Masters Blog
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Scrubbable Staggered Animation with CSS @function – Frontend Masters Blog

**[Frontend Masters](https://daily.dev/sources/frontendmasters)** · 12 min read · 2 upvotes · 0 comments

## Summary

A deep dive into creating scrubbable staggered animations using a single progress value instead of per-element animation delays. The technique uses a mathematical 'stagger formula' implemented via the new CSS @function rule, sibling-index(), clamp(), and if(). Unlike traditional delay-based staggering, this approach ties all elements to one shared progress value that can be linked to keyframe animations, scroll-driven animations, or any external input. The article walks through the math behind the formula, builds it step by step, and shows CSS implementations including easing functions, stop-motion effects, and scroll-linked demos.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://frontendmasters.com/blog/scrubbable-staggered-animation-with-css-function>

## Similar posts on daily.dev

- [How to create awesome staggered animations in CSS](https://daily.dev/posts/how-to-create-awesome-staggered-animations-in-css-k09m57ftt) · LogRocket · 52 upvotes · 2 comments
- [Staggered Animation with CSS sibling-\* Functions – Frontend Masters Blog](https://daily.dev/posts/staggered-animation-with-css-sibling--functions-frontend-masters-blog-o9x9nobox) · Frontend Masters · 0 upvotes · 0 comments
- [Numbers That Fall \(Scroll-Driven Animations & Sibling Index\) – Frontend Masters Blog](https://daily.dev/posts/numbers-that-fall-scroll-driven-animations-sibling-index-frontend-masters-blog-zchezn14j) · Frontend Masters · 1 upvotes · 0 comments
- [Scroll-driven CSS animations](https://daily.dev/posts/scroll-driven-css-animations-uw6plcluy) · Flavio Copes · 137 upvotes · 5 comments

---

Tags: [#css](https://daily.dev/tags/css)

[View this post on daily.dev](https://daily.dev/posts/scrubbable-staggered-animation-with-css-function-frontend-masters-blog-1fvbhiwqv)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Scrubbable Staggered Animation with CSS @function – Frontend Masters Blog","url":"https://daily.dev/posts/scrubbable-staggered-animation-with-css-function-frontend-masters-blog-1fvbhiwqv","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/scrubbable-staggered-animation-with-css-function-frontend-masters-blog-1fvbhiwqv"},"datePublished":"2026-06-08T13:50:35.226Z","dateModified":"2026-06-08T13:51:01.929Z","description":"A deep dive into creating scrubbable staggered animations using a single progress value instead of per-element animation delays. The technique uses a...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cc249461412d7f59bfb911b86700451b?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cc249461412d7f59bfb911b86700451b?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Frontend Masters","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Frontend Masters","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/d34dd87208f24090bfb0917307fcf89f","url":"https://daily.dev/sources/frontendmasters"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/scrubbable-staggered-animation-with-css-function-frontend-masters-blog-1fvbhiwqv","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"css","timeRequired":"PT12M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Frontend Masters","item":"https://daily.dev/sources/frontendmasters"},{"@type":"ListItem","position":3,"name":"Scrubbable Staggered Animation with CSS @function – Frontend Masters Blog"}]}
```

