lottie

Integrate Lottie and dotLottie animations into HyperFrames via a registered player interface.

40.2k|3.8k|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/heygen-com/hyperframes --skill lottie-heygen-com
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lottie
Source: https://github.com/heygen-com/hyperframes/tree/main/skills/lottie
Command: npx skills add https://github.com/heygen-com/hyperframes --skill lottie-heygen-com

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Lottie and dotLottie adapter patterns for HyperFrames enable embedding and controlling Lottie animations (lottie-web JSONs and .lottie files) within your compositions, with deterministic playback and a unified registration surface.

Core Features & Use Cases

  • Load assets from local project files, usually under assets/, and set autoplay: false and loop: false to ensure controlled playback.
  • Register every returned animation or player on window.__hfLottie to allow global management and synchronized seeking.
  • Keep the Lottie container dimensions stable with CSS for reliable layout across renders and devices.

Quick Start

Add your Lottie asset to the assets folder, initialize it with the appropriate lottie-web or dotLottie player, and push the resulting player to window.__hfLottie for HyperFrames to manage.

Frequently Asked Questions about lottie

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I embed Lottie animations inside a composition timeline?

You can embed Lottie animations by loading local lottie-web JSON or dotLottie files under assets/, initializing a compatible player, and registering it on window.__hfLottie for HyperFrames to synchronize with the composition timeline.

Can I use dotLottie files with HyperFrames compositions?

Yes, dotLottie files are supported alongside lottie-web JSON animations. You load the local asset, initialize the appropriate dotLottie player, and register the resulting player instance to window.__hfLottie for synchronized timeline control.

Why does my Lottie animation autoplay or loop unexpectedly in HyperFrames?

Lottie animations autoplay or loop unexpectedly because default settings are not enforced. This adapter sets autoplay: false and loop: false by default, ensuring controlled, deterministic playback synchronized directly to the composition timeline.

How do I synchronize Lottie playback with a composition timeline?

To synchronize Lottie playback with a composition timeline, you register each animation instance to the centralized window.__hfLottie registry. This provides a unified interface for HyperFrames to globally manage and deterministically seek animations.

How do I fix layout shifts when rendering Lottie animations across devices?

To fix layout shifts when rendering Lottie animations, keep the Lottie container dimensions stable using CSS. This ensures reliable layout across renders and devices, preventing the container from collapsing or expanding unexpectedly during playback.

Do I need to manually register every Lottie player for HyperFrames to control it?

Yes, you need to manually register every Lottie player. Pushing each initialized player to the window.__hfLottie registry is required for HyperFrames to globally manage, control, and synchronize the animation with the composition timeline.