cuboid-carousel

Renders 3D bevelled cuboids with content cards in a traveling-wave carousel animation.

77.3k|7.1k|Updated Mar 10, 2026
Ready to run
npx skills add https://github.com/heygen-com/hyperframes --skill cuboid-carousel-heygen-com
๐Ÿ’ฌ Prompt for ChatGPT / Claude Chatโ–ผ
Please help me install this Agent Skill.
Skill: cuboid-carousel
Source: https://github.com/heygen-com/hyperframes/tree/main/registry/blocks/cuboid-carousel
Command: npx skills add https://github.com/heygen-com/hyperframes --skill cuboid-carousel-heygen-com

SYSTEM DOCUMENTATION & REQUIREMENTS

๐Ÿ’ก This Skill requires three.js, gsap, and includes scripts (resource) and assets (resource) components.

What problem does it solve? This Skill solves the need to create complex 3D product showcases and rotating content displays without writing custom WebGL or motion graphics code. It handles all the geometry, lighting, physics, and animation choreography. ## Core Features & Use Cases - 3D Cuboid Geometry: Procedurally generates bevelled cuboids with customizable dimensions, corner radius, and bevel depth. - Traveling Wave Motion: Cuboids fly in from the right, cruise with per-cuboid rotation stagger, decelerate to a hero hold, then exit leftโ€”all following a Blender-approved motion curve. - Customizable Lighting & Materials: Full control over PBR materials, ambient/directional/key lights, shadow softness, and room environment HDRI. - Content Cards: Renders text, category labels, and pill badges onto card faces using Canvas 2D, with per-card color and typography. - Use Case: An e-commerce site needs to showcase product variants or feature highlights in a cohesive, premium motion design that runs at 30fps and renders to MP4 via npx hyperframes render. ## Quick Start Ask your AI agent to customize the cuboid carousel: set the count to 6 cards, change the body color to a dark blue, increase the key light intensity to 7, and replace the built-in cards with your own product titles and images.

Frequently Asked Questions about cuboid-carousel

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I customize the cards shown in the cuboid carousel?โ–ผ

Pass a JSON array via the `cardsJson` variable with objects containing `color`, `category`, `title`, and `pills` fields. If cardsJson is empty, the built-in CARDS array in the source code is used as fallback. Invalid JSON silently reverts to defaults.

What does seek-safe mean and why does the composition require it?โ–ผ

Seek-safe means every visual state is a closed-form function of time, with no randomness or side effects. This allows the renderer to jump to any frame without replaying prior frames, enabling efficient MP4 encoding and interactive scrubbing in Studio.

Can I change the hero card or the number of repeating cards?โ–ผ

Yes. The `heroCard` variable (1-based index) selects which card breaks away and holds at center. The `count` variable (1โ€“12) controls how many cards loop. Both support live preview in Studio and render-time overrides.

Does the cuboid carousel work on mobile or low-end devices?โ–ผ

The composition requires a WebGL-capable browser and runs one instance at a time, consuming roughly 350 MB per live rendering. Mobile support depends on device GPU; performance scales with shadow map size and geometry smoothness settings.

How do I adjust the camera movement or exit rotation of the hero card?โ–ผ

Use `cameraFov`, `cameraX/Y/Z`, `cameraSettleFrame`, and `handheldStrength` to control the viewing angle and handheld motion. Set `heroExitX/Y/Z` (in degrees) to define the hero's spin during exit. All values are constrained to validated ranges and update deterministically on seek.

What external libraries does the composition depend on?โ–ผ

Three.js (core + RoomEnvironment addon), GSAP 3.14.2, and Google Fonts (Inter). All assets are bundled; no external CDN calls except font delivery, which is preconnected for offline-first reliability.