Skip to content

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.

Search and add bits from a HyperFrames project:

Terminal window
npx hyperbits find "fade in text"
npx hyperbits add fade-in

add writes compositions/fade-in.html and prints a data-composition-src snippet.

Bits load GSAP themselves from:

https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js

Helpers ship as hyperbits.iife.js (CDN or the local dist/ build). HyperFrames does not inject either.

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.

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>.

  1. Browse the catalog
  2. Read the CLI and MCP pages
  3. Use a helper from the reference