Skip to main content
rule CX Codex

dynamic-content-sequencing — Claude Code rule guide

dynamic-content-sequencing computes scene display timing from text length and pacing parameters. It gives longer paragraphs more screen presence without hardcoding frame counts.

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/dynamic-content-sequencing.md
Open on GitHub

What dynamic-content-sequencing does

The rule handles sequential scenes like quote decks, stats, or multi-step cards. Instead of assigning manual frame numbers to each block, it derives durations using a base interval, character counts, and pause buffers. Cumulative offsets determine exact transition boundaries along the timeline.

Runtime logic relies on a GSAP timeline runner. The update handler checks timestamps against the schedule, updating DOM elements only when the active index changes to prevent unnecessary layout recalculations. Reserving container dimensions via min-height in CSS is necessary, because text length changes will otherwise cause visual layout shifts.

The pattern also supports blending neighboring slides with an overlap parameter or assigning distinct motion rules to specific slides.

What it helps with

  • calculate display durations automatically based on string length
  • switch content blocks in a GSAP timeline without per-frame DOM thrashing
  • assemble multi-card video sequences without hardcoded frame offsets
  • blend transition boundaries between slides using crossfade overlap

Example prompts for the agent

  • Build a timeline sequence for four feature highlights using dynamic-content-sequencing.
  • Apply dynamic-content-sequencing to calculate timing for our customer quote deck with GSAP.
  • Configure dynamic-content-sequencing with a 0.3-second crossfade between narrative cards.

How to install dynamic-content-sequencing

Manually: put the files in place

.claude/rules/dynamic-content-sequencing.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 dynamic-content-sequencing

How to install dynamic-content-sequencing in Claude Code?

Place the rule file at .claude/rules/dynamic-content-sequencing.md inside your repository.

What makes dynamic-content-sequencing different from discrete-text-sequence?

It swaps complete multi-field content layouts rather than animating state transitions on a single text tag.

Does dynamic-content-sequencing require external dependencies?

The implementation script expects GSAP version 3.14.2 or higher loaded to manage the timeline driver and updates.

Similar IDE rules

All IDE rules for Frontend and UI →

From the same set101

The whole set →
reactive-displacement reactive-displacement — a transition rule where the incoming card's spring also drives the outgoing card, so the swap reads as a hit. CX Codex +1 ★ 78,316repo stars hyperframes-media hyperframes-media generates voiceovers, background tracks, sound effects, and subtitles for HyperFrames projects using scripts/audio.mjs. CX Codex +1 ★ 78,316repo stars 3d-text-depth-layers The 3d-text-depth-layers rule builds dimensional typography from offset DOM layers. Use it for large hero headings with stacked depth or animated extrusion. CX Codex +1 ★ 78,316repo stars ai-video-gen ai-video-gen turns a written prompt into a video clip through HeyGen, fal.ai, Kling or Gemini, choosing a gateway for the job. CX Codex +1 ★ 78,316repo stars website-to-video website-to-video captures a website with headless Chrome and turns its visuals into a HyperFrames video. Use it for a site tour, showcase, or social clip. CX Codex +1 ★ 78,316repo stars asr-keyword-glow asr-keyword-glow — a rule that makes words light up and scale up as they get "spoken", driven by per-word timestamps. For promo clips and narrated videos where you need to pace the emphasis. CX Codex +1 ★ 78,316repo stars press-release-spring press-release-spring calculates tactile button animation with linear scaling on tap, GSAP spring bounce on release, and glowing visual cues. Useful when polishing UI interactions. CX Codex +1 ★ 78,316repo stars card-morph-anchor The card-morph-anchor rule describes a container that changes shape as one scene gives way to another. Use it when the morph itself should carry the transition. CX Codex +1 ★ 78,316repo stars

Project sponsors

Companies that keep this analytics open