animation-on-scroll

animation-on-scroll is a skill for Claude Code, Codex from 2233admin/design-pipeline. It costs 45 tokens per session (860 once invoked), scanned A, a copy of animation-on-scroll, MIT.

A browser feature that starts an element's animation when it enters the visible part of a page. It uses IntersectionObserver, a browser API that detects when an element crosses the viewport.

In plain words
What is it for?
Use it for scroll reveals and sequenced animations as headings, images, or sections come into view.
Why use it?
It prevents scroll-reveal animations from starting at the wrong time and provides a reusable way to pause and start them.

Skill for Claude CodeCodex

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

Good fit Use it for scroll reveals and sequenced animations as headings, images, or sections come into view.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/2233admin/design-pipeline/animation-on-scroll
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 2233admin/design-pipeline --skill animation-on-scroll
Clone the repo
git clone --depth 1 https://github.com/2233admin/design-pipeline

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 animation-on-scroll

README.md
[![agentmods](https://agentmods.dev/badge/skills/2233admin/design-pipeline/animation-on-scroll/github.svg)](https://agentmods.dev/skills/2233admin/design-pipeline/animation-on-scroll)
Your own site
<a href="https://agentmods.dev/skills/2233admin/design-pipeline/animation-on-scroll"><img src="https://agentmods.dev/badge/skills/2233admin/design-pipeline/animation-on-scroll/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 animation-on-scroll

Your own site · 80×15
<a href="https://agentmods.dev/skills/2233admin/design-pipeline/animation-on-scroll"><img src="https://agentmods.dev/badge/skills/2233admin/design-pipeline/animation-on-scroll.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 860 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.
Origin 100% copy Near-identical to another mod 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.00045 $0.00860
Opus 5 $0.00023 $0.00430
Sonnet 5 $0.00009 $0.00172
Haiku 4.5 $0.00005 $0.00086

Measured 6d ago against content hash 4c9c795a9d5d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

animation-on-scroll 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 6d 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.

Origin

This is a copy

100% identical to animation-on-scroll — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skill/references/mengto-skills/upstream/agent-skills/web-design/animation-on-scroll/SKILL.md · 111 lines

How it starts

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

Animation On Scroll Skill

Workflow

  1. Confirm animation style, timing, and whether animations should run once or repeat.
  2. Provide the keyframes + JS observer snippet and the exact Tailwind class to apply.
  3. Offer focused tweaks only (threshold, rootMargin, duration, delay, transform/blur values).

Usage checklist

  • Insert the JS snippet in the <head> after the keyframes.
  • Add the animation class and animate-on-scroll to elements.
  • Ensure your keyframes name matches the Tailwind animation reference.

IntersectionObserver trigger

<script>
  /*
    Sequence animation on scroll when visible. Requires Animation Keyframe. Usage:

    1) Insert this code in the <head> along with the Animation Keyframe code.

    2) Add to Tailwind Classes: [animation:animationIn_0.8s_ease-out_0.1s_both] animate-on-scroll
  */
  (function () {
    // Inject CSS for paused/running states
    const style = document.createElement("style");
    style.textContent = `
      /* Default: paused */
      .animate-on-scroll { animation-play-state: paused !important; }
      /* Activated by JS */
      .animate-on-scroll.animate { animation-play-state: running !important; }
    `;
    document.head.appendChild(style);

    const once = true;

    if (!window.__inViewIO) {
      window.__inViewIO = new IntersectionObserver((entries) => {
        entries.forEach((entry) => {
          if (entry.isIntersecting) {
            entry.target.classList.add("animate");
            if (once) window.__inViewIO.unobserve(entry.target);
          }
        });
      }, { threshold: 0.2, rootMargin: "0px 0px -10% 0px" });
    }

    window.initInViewAnimations = function (selector = ".animate-on-scroll") {
      document.querySelectorAll(selector).forEach((el) => {
        window.__inViewIO.observe(el); // observing twice is a no-op
      });
    };

    document.addEventListener("DOMContentLoaded", () => initInViewAnimations());
  })();
</script>

Keyframes

<style>
  /*
    Sequence animation intro. Usage:

    1) Insert this code in the <head>

    2) Add to Tailwind Classes: [animation:animationIn_0.8s_ease-out_0.1s_both]
  */
  @keyframes animationIn {
    0% {
      opacity: 0;
      transform: translateY(30px);
      filter: blur(8px);
    }

    100% {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0px);
    }
  }
</style>

Read the full file on GitHub · 111 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 111 lines · 45 tokens per session scan A 4c9c795a9d5d

Subscribe to this mod's changes

animation-on-scroll is a skill published in the GitHub repository 2233admin/design-pipeline (9 stars, last pushed 7d ago), licensed MIT. It adds 45 tokens to every session and 860 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to animation-on-scroll, differing in 0 lines, and is treated as a copy.