Getting Started
hyperbits is a catalog of self-contained HTML + GSAP animation bits for HyperFrames. Each bit is a composition file with its own CSS, paused timeline, and data-composition-variables.
Installation
Section titled “Installation”Search and add bits from a HyperFrames project:
npx hyperbits find "fade in text"npx hyperbits add fade-inadd writes compositions/fade-in.html and prints a data-composition-src snippet.
Point the project registry at the hyperbits catalog, then use the HyperFrames CLI:
{ "registry": "https://hyperbits.pages.dev"}npx hyperframes add fade-innpm install hyperbits{ "mcpServers": { "hyperbits": { "command": "npx", "args": ["-y", "hyperbits", "mcp"] } }}Prerequisites
Section titled “Prerequisites”Bits load GSAP themselves from:
https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.jsHelpers ship as hyperbits.iife.js (CDN or the local dist/ build). HyperFrames does not inject either.
Embed a bit
Section titled “Embed a bit”After hyperbits add fade-in:
<script src="https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js"></script><script src="https://unpkg.com/hyperbits/dist/hyperbits.iife.js"></script>
<div data-composition-src="compositions/fade-in.html"></div>Override knobs declared in data-composition-variables with data-variable-values on the host, or --variables on hyperframes render.
Helpers
Section titled “Helpers”The same helpers bits use are available as ES modules:
import { interpolate, stagger, viewport } from 'hyperbits/helpers';or on the IIFE global hyperbits inside a composition <script>.