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
.claude/rules/dynamic-content-sequencing.mdWhat 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.mdThe paths frontmatter field limits the files
AGENTS.md
Codex reads AGENTS.md: paste the rule text there
Manually: put the files in place
.cursor/rules/dynamic-content-sequencing.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/dynamic-content-sequencing.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/dynamic-content-sequencing.mdManually: put the files in place
.clinerules/dynamic-content-sequencing.mdStep 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.