scroll-scrub-hero

scroll-scrub-hero is a skill for Claude Code, Codex from S3YED/appie-kit. It costs 49 tokens per session (1,523 once invoked), scanned A, original, MIT.

A set of instructions for building a full-screen website hero where video playback follows the visitor's scroll position. It explains the pinned layout, smooth frame changes, mobile fallback, and Safari/iPhone preparation.

In plain words
What is it for?
Use it for Apple-style product introductions, sticky video heroes, and transformation effects revealed through scrolling.
Why use it?
It helps solve choppy scrolling, incorrect video seeking, and browser-specific playback problems. It also provides a clear structure for combining the video with text and calls to action.

Skill for Claude CodeCodex

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

Good fit Use it for Apple-style product introductions, sticky video heroes, and transformation effects revealed through scrolling.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/s3yed/appie-kit/scroll-scrub-hero
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 S3YED/appie-kit --skill scroll-scrub-hero
Clone the repo
git clone --depth 1 https://github.com/S3YED/appie-kit

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-scrub-hero

README.md
[![agentmods](https://agentmods.dev/badge/skills/s3yed/appie-kit/scroll-scrub-hero/github.svg)](https://agentmods.dev/skills/s3yed/appie-kit/scroll-scrub-hero)
Your own site
<a href="https://agentmods.dev/skills/s3yed/appie-kit/scroll-scrub-hero"><img src="https://agentmods.dev/badge/skills/s3yed/appie-kit/scroll-scrub-hero/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-scrub-hero

Your own site · 80×15
<a href="https://agentmods.dev/skills/s3yed/appie-kit/scroll-scrub-hero"><img src="https://agentmods.dev/badge/skills/s3yed/appie-kit/scroll-scrub-hero.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,523 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 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.00049 $0.01523
Opus 5.5 $0.00020 $0.00609
Sonnet 5.5 $0.00010 $0.00305
Haiku 4.5 $0.00005 $0.00152

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

Security

Grade A, and why

scroll-scrub-hero 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/creative/scroll-scrub-hero/SKILL.md · 135 lines

How it starts

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

Scroll-Scrub Video Hero

Build a hero section where a video scrubs frame-by-frame driven by the user's scroll position — Apple-product-page style. The video plays forward (and rewinds) exactly as fast as you scroll.

Trigger conditions:

  • User wants a "scroll scrub video", "scroll-driven animation", "Apple-style hero", or "sticky video hero"
  • User wants a before/after transformation revealed by scrolling
  • User asks to fix a "janky" or "not smooth" scroll video
  • User points to a reference (Soleiman Advocatuur, Apple product pages, Apex scroll hero)

Architecture

<section.hero>       ← 250vh tall (the scroll runway)
  <div.hero-sticky>  ← position: sticky; top: 0; height: 100vh (the viewport-pinned stage)
    <video>          ← positioned absolute, inset 0, object-fit: cover
    .hero-overlay    ← text/CTAs that fade out during scrub
    .scroll-hint     ← "Scroll" indicator that fades early

The Core Loop (rAF + Lerp)

The critical piece — a requestAnimationFrame loop that smoothly interpolates between the current scroll position and video.currentTime. This is what makes it smooth.

let duration = 0;
video.addEventListener('loadedmetadata', () => { duration = video.duration; });
if (video.readyState >= 1) duration = video.duration;

let cur = 0;
const LERP = 0.12;          // Soleiman uses 0.12, apex uses 0.14
const PIN = 1.5;            // viewport heights to scrub over

function tick() {
  requestAnimationFrame(tick);

  const p = Math.min(1, Math.max(0, window.scrollY / (window.innerHeight * PIN)));
  const target = p * duration;

  cur += (target - cur) * LERP;
  if (Math.abs(target - cur) < 0.004) cur = target;

  if (video.readyState >= 2 && Number.isFinite(cur) && duration > 0) {
    const t = Math.min(cur, duration - 0.05);
    if (Math.abs(video.currentTime - t) > 0.01) {
      video.currentTime = t;
    }
  }

  // Overlay + hint fade
  overlay.style.opacity = Math.max(0, 1 - Math.max(0, p - 0.05) / 0.2);
  hint.style.opacity = Math.max(0, 1 - p / 0.08);
}

Read the full file on GitHub · 135 lines

Files

What ships with it

1 file 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. 3mo ago First seen · 135 lines · 49 tokens per session scan A 1a57c842c55e

Subscribe to this mod's changes

scroll-scrub-hero is a skill published in the GitHub repository S3YED/appie-kit (14 stars, last pushed 3mo ago), licensed MIT. It adds 49 tokens to every session and 1,523 once invoked, about $0.0002 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-09-03.

Related

scroll-scrub-hero compared with skills from other repositories

scroll-scrub-hero next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
scroll-scrub-heroS3YED/appie-kitSkill143mo agoMITA49Claude Code, Codex
frontend-designViryaZheng/recomby-geoSkill4635mo agoMITA77Claude Code
inspecting-hermes-desktop-domNousResearch/hermes-agentSkill268ktodayMITA20Claude Code, Codex
scroll-craftnateherkai/scroll-craftSkill5.7k2mo agoMITA177Claude Code
generic-design-systemtravisjneuman/.claudeSkill116todayMITA60Claude Code
generic-static-feature-developertravisjneuman/.claudeSkill116todayMITA40Claude Code
agent-accessibility-experttravisjneuman/.claudeSkill116todayMITA41Claude Code