The library

Curated, not a catalog dump.

Every signature component, built for a real site. Filter, preview live, copy in React or Vue.

Browse the library

Landmark Kits

Depth, not breadth.

A deep, stand-alone collection built around one system. The first Kit is Reveal - preloaders and hero sections, one mixable system, WebGL and GSAP. React, Vue, HTML / CSS / JS. Not for Webflow.

See the Reveal Kit

Concepts, patterns, tools

Learn the vocabulary.

Definitions and examples for the GSAP and animation concepts behind production motion. Free, citable, and cross-linked with the components that use each idea.

Open concepts
GSAP component for HTML/CSS/JS

Capsule Hero in HTML/CSS/JS.

A full-screen hero where two giant letters split apart to reveal a video framed inside a rounded capsule window. Click the capsule to expand the video to fill the whole screen, click again to shrink it back.

Install

Drop Capsule Hero into any HTML page

Capsule Hero ships as plain HTML, CSS, and JavaScript - no build step, no bundler, no framework. Copy the three blocks (HTML markup, CSS styles, JS init) and paste them into any page. The component works in any CMS that lets you embed custom code: Webflow, Framer, Astro, vanilla HTML, WordPress, Squarespace.

example.html
Integrate

Where it goes in your page

Paste the HTML markup wherever the component should appear. Add the CSS to your stylesheet (or in a <style> tag). Add the JavaScript inside a <script> tag at the end of <body>, or in your site's footer custom code block.

In Webflow specifically: HTML goes in an Embed block, CSS goes in the page or project Custom Code <head> section, JS goes in the page Custom Code <body> section. The JSON paste flow (Designer → paste) handles the structure + classes for you; the Custom Code drop-ins handle the script and any custom CSS the JSON can't carry.

The component initializes on DOMContentLoaded automatically - no manual call needed.

Gotchas

Needs gsap, ScrollTrigger, CustomEase AND SplitText globals

waitForGSAP polls for all four before init. Load them before the component script or it never boots.

Ship exactly one toggle text span

The [data-anm-cph-toggle-text] span with the text Play is cloned by JS for the masked Play/Close roll - do not add a second one.

Video playback is gated, not automatic

With data-anm-autoplay off (the default) the video shows its poster frame and starts on expand, pausing again on collapse. Set data-anm-autoplay="true" for an ambient loop from load. The video is always muted.
FAQ

Common questions

Does Capsule Hero work in Webflow?
Yes. The component ships with both a Webflow-compatible JSON paste (for the Designer) and standard HTML/CSS/JS for projects that prefer Custom Code. The Webflow tab on the main detail page has both formats.
Does Capsule Hero work in WordPress, Squarespace, Framer, Astro, or other no-code platforms?
Yes. Anywhere you can add custom HTML, CSS, and JavaScript - the component works. Paste the markup into your page, add CSS to the styles section, and add JS to the script section. No framework required.
Do I need a build step for this version?
No. The HTML version is plain, copyable code that runs directly in the browser. No bundler, no transpiler, no npm install. Just paste and it works.
Can I use this with TypeScript?
The HTML version is plain JavaScript - no TypeScript types. If you want TypeScript, the React or Vue variants ship with proper type definitions. The HTML version is intended for projects that don't have a build step.

Copy the HTML/CSS/JS code

The full HTML/CSS/JS implementation lives on the component page, with the live demo, every format side by side, and the ability to edit and re-run it in the browser.

Open Capsule Hero

Annnimate

Capsule Hero is one of 70+ GSAP components, each shipping in React, Vue, and HTML/CSS/JS with the same production tuning.