Skill library

Agent skill Web motion

Code Slice Hero

Design, implement or review motion on the web.

  • Animation

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add https://github.com/heygen-com/hyperframes/tree/main/registry/blocks/code-slice-hero --skill code-slice-hero --agent claude-code --yes

Check this file in your project.claude/skills/code-slice-hero/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add https://github.com/heygen-com/hyperframes/tree/main/registry/blocks/code-slice-hero --skill code-slice-hero

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. A HyperFrames project, Node 22+, FFmpeg for video render, and a Chromium environment that can run WebGL 2. The bundled Geist font serves the sample text.

View operation manual

What this skill helps with

  • Design, implement or review motion on the web.

Good for

  • Web motion and transitions
Publisher
HeyGen HyperFrames
Workflow type
Registry composition
Result
An 8 s, 1920×1080 headline flip at 30 fps, with inspected title and sweep frames.
Skill name
code-slice-hero

Common pitfall

Avoid this prompt

Stretch the tile grid to fit the headline and animate from the live mouse position.

The block treats copy, font size, square tile size, and the timed sweep as separate inputs. Live pointer state makes frame seeks depend on interaction history.

Use these steps

  1. Use the registry mount and fit the whole eight-second segment in the host timeline.
  2. Keep the square tiles and give this mount its own headline pair and direction.
  3. Seek out of order and check the three distinct visual beats.

Hands-on walkthrough

Use the editable WebGL tile block to hand off from a front headline to a back headline in an eight-second scene.

Use the editable WebGL tile block to hand off from a front headline to a back headline in an eight-second scene.

  1. Install and place the original block

    Use the registry mount and fit the whole eight-second segment in the host timeline.

    Prompt · Step 1
    Use Code Slice Hero for [my field journal title card]. Run npx hyperframes add code-slice-hero from the project or use the installed plugin launcher for the same add command. Check the actual written paths and mount it with matching data-composition-id, data-composition-src, an eight-second slot, and 1920×1080 dimensions. Keep the included scripts and font in their relative paths.
  2. Set copy, cell size, and sweep

    Keep the square tiles and give this mount its own headline pair and direction.

    Prompt · Step 2
    Set the mount’s data-variable-values to headline FIELD NOTES, reverseHeadline LOOK CLOSER, direction right-to-left, and cellSize 96. Keep both headlines within 32 characters. Preserve the built-in paused timeline and its hf-seek handler. For a standalone export, target the installed HTML with hyperframes render -c and pass the same values through --variables.
  3. Inspect front, sweep, and rear

    Seek out of order and check the three distinct visual beats.

    • Original front and rear headlines are legible.
    • The direction and repeated seek give the expected motion.
    Prompt · Step 3
    Run hyperframes check --json and inspect snapshots at block-local 0.5, 3, and 7s, translating by the mount offset when sampling the parent. Confirm the first and final titles are complete, the sweep travels right-to-left, and the 3s view matches when revisiting it after 7s. If exporting, verify the downloaded or local file duration and decode the same frames.

Workflow lookup

Use the documented controls and run the checks on your own composition.

Set the title pairHyperFrames
Command or reference
headline · reverseHeadline · 32 characters
Examples
Keep each title short and verify font coverage when changing its language.
Control the grid and sweep independentlyHyperFrames
Command or reference
cellSize: 96 · direction: "right-to-left"
Examples
Adjust tile size without stretching the text texture or replacing the time-based sweep.

FAQ

Why does the middle look unchanged when seeking?

Check the runtime errors, WebGL 2 context, relative scripts, and timeline registration. The tile motion should repaint when the player dispatches hf-seek.

How do I choose the HyperFrames command prefix?

A standalone CLI uses npx hyperframes in the project. For a plugin-bundled CLI, use its installed launcher so the command runs with the plugin’s release.