Lottie
/install lottie
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: falseunless 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
\x3Cdiv id="logo-lottie" class="lottie-layer">\x3C/div>
\x3Cscript src="https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.12.2/lottie.min.js">\x3C/script>
\x3Cscript>
const anim = lottie.loadAnimation({
container: document.getElementById("logo-lottie"),
renderer: "svg",
loop: false,
autoplay: false,
path: "assets/logo-reveal.json",
});
window.__hfLottie = window.__hfLottie || [];
window.__hfLottie.push(anim);
\x3C/script>
.lottie-layer {
width: 100%;
height: 100%;
}
dotLottie Pattern
\x3Ccanvas id="product-lottie" class="lottie-canvas">\x3C/canvas>
\x3Cscript src="https://unpkg.com/@lottiefiles/dotlottie-web">\x3C/script>
\x3Cscript>
const player = new DotLottie({
canvas: document.getElementById("product-lottie"),
src: "assets/product-flow.lottie",
autoplay: false,
loop: false,
});
window.__hfLottie = window.__hfLottie || [];
window.__hfLottie.push(player);
\x3C/script>
.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
pathURLs at render time. - Starting playback with
play(). - Assuming unsupported After Effects effects will survive export. Test the JSON or
.lottiefile 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
- lottie-web
loadAnimationoptions: 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
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install lottie - After installation, invoke the skill by name or use
/lottie - Provide required inputs per the skill's parameter spec and get structured output
What is Lottie?
Lottie and dotLottie adapter patterns for HyperFrames. Use when embedding lottie-web JSON animations, .lottie files, @lottiefiles/dotlottie-web players, regi... It is an AI Agent Skill for Claude Code / OpenClaw, with 35 downloads so far.
How do I install Lottie?
Run "/install lottie" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Lottie free?
Yes, Lottie is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Lottie support?
Lottie is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Lottie?
It is built and maintained by Lucas-Kay8 (@lucas-kay8); the current version is v1.0.0.