Agent skill Web motion
Cuboid Carousel
Design, implement or review motion on the web.
Install the skill
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/cuboid-carousel --skill cuboid-carousel --agent claude-code --yesCheck this file in your project.claude/skills/cuboid-carousel/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add https://github.com/heygen-com/hyperframes/tree/main/registry/blocks/cuboid-carousel --skill cuboid-carouselSelect 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+, Chromium with usable WebGL, and FFmpeg for video export. The template requests Inter from Google Fonts.
View operation manualWhat 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
- A 200-frame, 1920×1080 carousel at 30 fps, with an identifiable featured card and clear exit.
- Skill name
cuboid-carousel- Repository
heygen-com/hyperframes
Common pitfall
Avoid this prompt
Pass cardsJson as an array and set heroCard: 0 for the first item.
The variable is a JSON string. Invalid cards can fall back to the built-in set, and heroCard starts at 1.
Use these steps
- Build a valid JSON string with titles and select the second entry as the featured slot.
- Keep the Three.js modules and local assets together, then pass the selected card data.
- Inspect carousel, hero hold, and clear frames sequentially and after a backward seek.
Hands-on walkthrough
Give the WebGL carousel original card data and check the chosen card’s isolated hold before export.
Give the WebGL carousel original card data and check the chosen card’s isolated hold before export.
Prepare two original cards
Build a valid JSON string with titles and select the second entry as the featured slot.
Prompt · Step 1Use Cuboid Carousel for [my field-notes feature]. Prepare two original card objects, Map the coast and Log the tide, each with a nonempty title, optional category, color, and up to two pills. Serialize that array into the string value cardsJson. Set heroCard to 2 and count to 5, so the chosen slot is within the repeating sequence.Mount one instance with its assets
Keep the Three.js modules and local assets together, then pass the selected card data.
Prompt · Step 2Run npx hyperframes add cuboid-carousel from the project or the matching plugin launcher. Use the printed mount snippet and keep the actual relative module and asset paths. Set data-variable-values for the original cards and start with a single 200-frame mount. For a light test you can set shadowMapSize to 512. Preserve the declared duration and 30 fps timing.Verify the solo hold and exit
Inspect carousel, hero hold, and clear frames sequentially and after a backward seek.
- The custom titles are painted and the correct card owns the solo hold.
- The final frame clears and seeking back restores the hold.
Prompt · Step 3Run hyperframes check --json. Use the block’s solo-hold and empty labels or sample the corresponding phases. Check that Log the tide is the sole visible card in the hold, the correct original copy is painted, and the frame clears after approximately 6.33s local time. Re-seek from the exit back to the hold. Record any WebGL or Inter font loading fallback observed.
Workflow lookup
Use the documented controls and run the checks on your own composition.
Supply custom cardsHyperFrames
- Command or reference
cardsJson · heroCard: 2 · count: 5- Examples
- Pass a JSON-encoded string with nonempty title fields and select a one-based slot.
Find proof framesHyperFrames
- Command or reference
solo-hold · hero-exit · empty- Examples
- Read the registered timeline labels when choosing snapshot times.
FAQ
Why did the default card titles appear?
The template falls back when it cannot parse cardsJson or a card lacks a title. Check the outer variables JSON, the nested encoded string, and the actual rendered titles.
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.