scroll-animations

scroll-animations is a skill for Claude Code, Codex from dylantarre/animation-principles. It costs 29 tokens per session (824 once invoked), scanned A, original, MIT.

A guide to making page elements move as the user scrolls. It covers content reveals, parallax effects, sticky headers, and scroll progress indicators.

In plain words
What is it for?
Use it when building scroll-triggered reveals, parallax backgrounds, sticky header transitions, progress indicators, or other motion linked to scrolling.
Why use it?
It helps turn scroll position into controlled, readable motion instead of disconnected or distracting effects. The guidance covers timing, order, and movement behavior.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when building scroll-triggered reveals, parallax backgrounds, sticky header transitions, progress indicators, or other motion linked to scrolling.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dylantarre/animation-principles/scroll-animations
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dylantarre/animation-principles --skill scroll-animations
Clone the repo
git clone --depth 1 https://github.com/dylantarre/animation-principles

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for scroll-animations

README.md
[![agentmods](https://agentmods.dev/badge/skills/dylantarre/animation-principles/scroll-animations/github.svg)](https://agentmods.dev/skills/dylantarre/animation-principles/scroll-animations)
Your own site
<a href="https://agentmods.dev/skills/dylantarre/animation-principles/scroll-animations"><img src="https://agentmods.dev/badge/skills/dylantarre/animation-principles/scroll-animations/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for scroll-animations

Your own site · 80×15
<a href="https://agentmods.dev/skills/dylantarre/animation-principles/scroll-animations"><img src="https://agentmods.dev/badge/skills/dylantarre/animation-principles/scroll-animations.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 824 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 16 Sept 2026
  • Snyk pass 16 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.00824
Opus 5.5 $0.00012 $0.00330
Sonnet 5.5 $0.00006 $0.00165
Haiku 4.5 $0.00003 $0.00082

Measured 3mo ago against content hash 3706ec77799d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

scroll-animations scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/05-by-animation-type/scroll-animations/SKILL.md · 115 lines

How it starts

The opening of the file, as written. The whole thing — 115 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Scroll Animations

Apply Disney's 12 principles to scroll-triggered motion.

Principle Application

Squash & Stretch: Elements can compress slightly while scrolling fast, settle when stopped.

Anticipation: Content should be slightly visible before full reveal. Start animations at 10-20% visibility.

Staging: Reveal content in reading order. Top-to-bottom, left-to-right progression.

Straight Ahead vs Pose-to-Pose: Define clear "hidden" and "revealed" poses. Scroll position interpolates between them.

Follow Through & Overlapping: Stagger reveals. First element triggers at 20% viewport, next at 25%, etc.

Slow In/Slow Out: Use ease-out for reveals triggered by scroll. Content settles into place.

Arcs: Parallax elements move on curves relative to scroll. Slight horizontal offset as vertical scroll occurs.

Secondary Action: Fade + slide + scale can combine for richer reveals.

Timing:

  • Reveal animation: 400-600ms (allows scroll to continue)
  • Parallax: real-time, 1:1 or fractional ratios
  • Sticky transitions: 200-300ms

Exaggeration: Subtle for scroll - users control the pace. Let scroll speed be the exaggeration.

Solid Drawing: Elements should never jump or teleport. Smooth interpolation at all scroll positions.

Appeal: Scroll animations should reward exploration, not obstruct it.

Timing Recommendations

Scroll Animation Duration Trigger Point Easing
Fade In 500ms 20% visible ease-out
Slide Up 600ms 15% visible ease-out
Parallax real-time continuous linear
Sticky Header 200ms threshold ease-out
Progress Bar real-time continuous linear
Section Reveal 600ms 25% visible ease-out

Implementation Patterns

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 500ms ease-out, transform 600ms ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* CSS-only parallax */
.parallax-container {
  perspective: 1px;
  overflow-y: auto;
}

.parallax-slow {
  transform: translateZ(-1px) scale(2);
}

Read the full file on GitHub · 115 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 115 lines · 29 tokens per session scan A 3706ec77799d

Subscribe to this mod's changes

scroll-animations is a skill published in the GitHub repository dylantarre/animation-principles (735 stars, last pushed 11mo ago), licensed MIT. It adds 29 tokens to every session and 824 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

scroll-animations compared with skills from other repositories

scroll-animations next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
scroll-animationsdylantarre/animation-principlesSkill73511mo agoMITA29Claude Code, Codex
animation-reverse-engineeringsendaifun/skillsSkill1284mo agoApache-2.0A176Claude Code, Codex
animated-portfolio-sitespedroiff0/awesome-skillsSkill1todayMITA58Claude Code, Codex
agent-platform-model-registrygoogle/skillsSkill25ktodayApache-2.0A60Claude Code, Codex
google-cloud-solution-agentic-analytics-spark-knowledge-cataloggoogle/skillsSkill25ktodayApache-2.0A132Claude Code, Codex
viteantfu/skillsSkill6.1k4d agoMITA49Claude Code, Codex
add-analyticsLeoYeAI/openclaw-master-skillsSkill2.2k9d agoMITA32Claude Code