Back

Lottie

Video & media69.1K installs

What it does

HyperFrames can seek both lottie-web and dotLottie players through its lottie runtime adapter. Lottie is a strong fit because the animation timeline is already encoded in the asset; HyperFrames only needs a player object it can seek.

Install

npx skills add https://github.com/heygen-com/hyperframes --skill lottie

Website

www.skills.sh/heygen-com/hyperframes/lottie

Details

From the skill’s SKILL.md or README, by its authors. View the original

## Lottie for HyperFrames HyperFrames can seek both `lottie-web` and dotLottie players through its `lottie` runtime adapter. Lottie is a strong fit because the animation timeline is already encoded in the asset; HyperFrames only needs a player object it can seek. ## Contract - Load assets from local project files, usually under `assets/`. - Set `autoplay: false`. - Prefer `loop: false` unless the user explicitly wants a loop. - Register every returned animation or player on `window.__hfLottie`. - Keep the Lottie container dimensions stable with CSS. The adapter seeks `lottie-web` with `goToAndStop(timeMs, false)` and dotLottie with frame or percentage APIs depending on player shape. ## lottie-web Pattern ```
``` ``` .lottie-layer { width: 100%; height: 100%; } ``` ## dotLottie Pattern ``` ``` ``` .lottie-canvas { width: 100%; height: 100%; display: block; } ``` ## Multiple Animations Push each player into the same registry: ``` window.__hfLottie = window.__hfLottie || []; window.__hfLottie.push(backgroundAnim); window.__hfLottie.push(iconAnim); window.__hfLottie.push(confettiAnim); ``` HyperFrames seeks them all to the same composition time. ## Good Uses - After Effects exports that are already known to render correctly in lottie-web. - Logo reveals, icon loops, decorative accents, and product UI motion. - Translating Remotion Lottie usage into plain HyperFrames HTML. ## Avoid - Relying on remote `path` URLs at render time. - Starting playback with `play()`. - Assuming unsupported After Effects effects will survive export. Test the JSON or `.lottie` file in a browser first. - Loading a player asynchronously and registering it after HyperFrames validation has already inspected the page. ## Validation After editing a Lottie composition: ``` npx hyperframes lint npx hyperframes validate ``` ## Credits And References - HyperFrames adapter source: `packages/core/src/runtime/adapters/lottie.ts`. - lottie-web by Airbnb: [https://github.com/airbnb/lottie-web](https://github.com/airbnb/lottie-web) - lottie-web `loadAnimation` options: [https://github.com/airbnb/lottie-web/wiki/loadAnimation-options](https://github.com/airbnb/lottie-web/wiki/loadAnimation-options) - dotLottie web player methods by LottieFiles: [https://developers.lottiefiles.com/docs/dotlottie-player/dotlottie-web/methods](https://developers.lottiefiles.com/docs/dotlottie-player/dotlottie-web/methods)
See all
  • Video & media

    The HyperFrames CLI by job - scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history - plus reading its JSON and recovering from build or render failures.

    npx skills add https://github.com/heygen-com/hyperframes --skill hyperframes-cli
    1.5M installs
  • Video & media

    Read first to make, edit, animate or render any video with HyperFrames (HTML rendered to video), including launch films, explainers, music videos, charts, maps, vertical clips, title cards, captions and overlays. Holds the render contract, the work loop and what each kind of…

    npx skills add https://github.com/heygen-com/hyperframes --skill hyperframes
    1.4M installs
  • Video & media

    Get or make any media for a HyperFrames video - music, sound effects, images, icons, logos, voiceover, avatar and generated video, transcripts, cutouts, colour grades and looks - with HeyGen or free local tools, and mix placed audio. Also for footage that looks dark, flat or…

    npx skills add https://github.com/heygen-com/hyperframes --skill media-use
    1.3M installs
  • Video & media

    About 450 ready-made HyperFrames blocks and components installed as editable source - transitions, overlays, titles, kinetic type, captions, charts, map overlays, 3D, camera moves. Use it before hand-building any named visual (CRT scanlines, glitch, film grain, a chart); also…

    npx skills add https://github.com/heygen-com/hyperframes --skill hyperframes-registry
    1.2M installs

Skills are shared by members and not reviewed by us. Read a skill’s code before you install it.