Skip to content
heygen-com avatar

Code Slice Hero

Tiled headline surface that flips cell by cell under a sweeping depth field to reveal a rear headline.

CCM score
62 of 100
skills.sh installs
14K
GitHub stars
92.2K
last updated
Nov 29, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers a square-tile headline surface with a cursor-driven depth field that lifts, tilts, and flips only the affected cells
  • Includes a single instanced WebGL 2 draw with a shared front and rear texture pair, plus a batched projected-shadow pass
  • Keeps copy, text size, and square cell size independent so tiles never stretch, with 18 runtime variables for motion, cursor, and shadow
  • Designed for HyperFrames projects rendering 1920×1080, 8-second blocks that mount via data-composition-src

Install

$ npx -y skills add heygen-com/hyperframes --skill code-slice-hero -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Code Slice Hero

A full square-tile surface carries one seamless headline. An imaginary cursor crosses the surface; nearby tiles respond to its Gaussian depth field with lift and tilt, and only the cells intersecting either headline silhouette turn over to reveal the rear headline. The whole grid is one instanced WebGL 2 draw with a shared front/rear texture pair, plus a batched projected-shadow pass. Copy, text size and square cell size are independent, so tiles never stretch. Sweep direction, easing strength, cursor radius, falloff, depth, bounce and shadow are all variables.

Composition id: code-slice-hero. Duration 8 s at 30 fps, 1920×1080.

Files

  • code-slice-hero.html (24 KB)
  • assets/Geist-Bold.ttf (65 KB)
  • assets/Geist-OFL.txt (4 KB)
  • assets/gsap-3.14.2.min.js (128 KB)
  • assets/GSAP-NOTICE.txt (1 KB)
  • shadows.js (10 KB)
  • surface.js (8 KB)

Install

For install and render commands, expand npx hyperframes to node "<SKILLS>/hyperframes/scripts/plugin-cli.mjs" in the project directory. Use the absolute path to your installed HyperFrames skills for <SKILLS>. If the launcher is missing, ask for the skill before proceeding.

Details

Repository
github.com/heygen-com/hyperframes
Categories
Animation & Motion, Frontend & UI Code
First seen
Nov 29, 2026

More from heygen-com/hyperframes

All 32

Similar to Code Slice Hero

More Animation & Motion