Skip to main content
rule CX Codex

vertical-spring-ticker — Claude Code rule: what it does

vertical-spring-ticker is a rule for Claude Code and Codex that defines a slot-machine vertical ticker with additive GSAP spring physics. Each spring advances the stack one discrete step instead of a smooth scroll.

AGPL-3.0 ★ 78,316 updated 2026-10-24

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/rules/vertical-spring-ticker.md
Open on GitHub

What vertical-spring-ticker does

The rule targets Claude Code and Codex. It gives the agent a complete blueprint: a fixed-height container with overflow: hidden, a vertical stack inside, and a transform computed as translateY = -ITEM_HEIGHT * sum(spring.progress). Several spring objects accumulate into one step-counter — the agent follows this exact pattern rather than inventing its own.

The structure covers HTML slots {item0}…{itemN}, CSS where .ticker and .item heights must be identical (a mismatch lets the adjacent item bleed past the mask), and a GSAP timeline firing each spring with back.out(BOUNCE_FACTOR). The relationship between STEP_SPACING and STEP_DUR matters: if spacing exceeds duration, springs stop overlapping and the additive effect disappears — the ticker degrades into a plain sequential scroll.

The rule also documents every tuneable constant: STEPS controls how many clicks occur, BOUNCE_FACTOR ranges from a polished 1.4 to a game-show 2.5+, and BRAND_DELAY sets the gap before the footer line fades in after the final step.

What it helps with

  • build a slot-machine-style vertical ticker with spring physics
  • set up an additive GSAP timeline where multiple springs combine into one transform
  • configure the masked container so off-screen items do not bleed past the clip
  • sequence several ticker states with individually tuned overshoot per step
  • reveal a footer element after the last ticker click has settled

Example prompts for the agent

  • Build a slot-machine ticker with three clicks, ITEM_HEIGHT 120px, and BOUNCE_FACTOR 2.0
  • Add a spring ticker with five slots and a BRAND_DELAY of 0.3s before the footer appears
  • Generate the ticker following the vertical-spring-ticker rule: two steps, STEP_DUR 0.45, STEP_SPACING 0.4

How to install vertical-spring-ticker

Manually: put the files in place

.claude/rules/vertical-spring-ticker.md

The paths frontmatter field limits the files

Step by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use

Questions about vertical-spring-ticker

How do I install vertical-spring-ticker in Claude Code?

Place the rule file at .claude/rules/vertical-spring-ticker.md in your project root. Claude Code picks it up from there automatically.

What does the vertical-spring-ticker rule do?

It tells the agent how to build a vertical ticker: the HTML slot structure, masked-container CSS, and a GSAP timeline where additive springs produce one discrete scroll step each.

What is the constraint between STEP_SPACING and STEP_DUR?

STEP_SPACING must be less than or equal to STEP_DUR. When spacing exceeds duration the springs no longer overlap, the additive accumulation breaks, and the result looks like an ordinary sequential scroll rather than a slot machine.

Similar IDE rules

All IDE rules for Frontend and UI →

From the same set101

The whole set →
discrete-text-sequence discrete-text-sequence — a rule for GSAP scenes where the terminal line swaps whole states instead of typing evenly: typos, backspaces, pasted chunks and holds. CX Codex +1 ★ 78,316repo stars animation-groups The animation-groups rule organizes ManimGL animations for parallel, sequential, or staggered playback. Use it when several scene elements need coordinated timing. CX Codex +1 ★ 78,316repo stars transform-animations transform-animations — a rule that teaches Claude Code and Codex how to transform objects in ManimGL — from basic shape morphing to complex function-based transformations. Use it when writing Python animations of mathematical objects. CX Codex +1 ★ 78,316repo stars embedding embedding instructs your coding agent to debug ManimGL scenes interactively via IPython, letting you test object positions and animations without restarting the render. CX Codex +1 ★ 78,316repo stars multi-phase-camera multi-phase-camera — a rule for animated web scenes: the camera moves through 2-3 zoom phases (pull-back, focus, push) with continuous micro-drift on top. For when a single linear zoom feels mechanical. CX Codex +1 ★ 78,316repo stars camera Reference rule for ManimGL CameraFrame controls. Helps write 2D pans, zoom sequences, and 3D view changes without syntax errors. CX Codex +1 ★ 78,316repo stars scale-swap-transition The scale-swap-transition rule describes a morph-like swap between two DOM elements using a shrinking exit and a springy entrance. Use it for UI state changes. CX Codex +1 ★ 78,316repo stars context-sensitive-cursor context-sensitive-cursor — a rule for typewriter scenes where the caret takes its colour and height from whichever segment of the line is being typed. CX Codex +1 ★ 78,316repo stars

Project sponsors

Companies that keep this analytics open