lottie-bodymovin

Implements Disney's 12 animation principles using Lottie animations exported from After Effects.

Updated Sep 1, 2026
One-click install
npx skills add https://github.com/zamansepeti43/c-rak-agent --skill lottie-bodymovin-zamansepeti43
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lottie-bodymovin
Source: https://github.com/zamansepeti43/c-rak-agent/tree/main/video-engine/.agents/skills/lottie-bodymovin
Command: npx skills add https://github.com/zamansepeti43/c-rak-agent --skill lottie-bodymovin-zamansepeti43

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires lottie-react, lottie-interactivity.

What problem does it solve? Applying classic animation principles to web and app interfaces is difficult when developers lack guidance on bridging After Effects authoring with runtime Lottie playback control. ## Core Features & Use Cases - 12 Animation Principles: Concrete After Effects techniques and expressions for squash and stretch, anticipation, staging, follow-through, easing, arcs, exaggeration, and more. - Runtime Playback Control: JavaScript patterns using playSegments, setSpeed, setDirection, goToAndStop, and frame event listeners to choreograph animations in code. - Use Case: A React developer building an interactive onboarding flow can layer multiple Lottie components, trigger secondary animations on completion events, and reverse playback on hover using the provided lottie-react snippets. ## Quick Start Ask the assistant to implement squash and stretch plus anticipation for a Lottie animation exported from After Effects and wire it into a React component.

Frequently Asked Questions about lottie-bodymovin

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

FAQPage Schema
How do I control Lottie animation playback in React?

Use lottie-react with the animationData prop, then call methods like playSegments, setSpeed, setDirection, and goToAndStop on the animation instance. Event listeners such as complete and enterFrame let you trigger secondary animations at specific frames.

How to add squash and stretch to a Lottie animation?

Animate Scale X and Y inversely in After Effects before export, using the expression s = transform.scale[1]; [100 + (100-s), s]. At runtime you can adjust the squash timing by changing playback speed with lottie.setSpeed.

Can I play only part of a Lottie animation?

Yes, use anim.playSegments([start, end], true) to play a specific frame range, such as frames 0-10 for an anticipation wind-up. You can chain segments with setTimeout or event listeners to sequence poses.

Does Lottie support interactive hover animations?

Yes, attach onMouseEnter and onMouseLeave handlers to the Lottie component and call anim.setDirection(1) or setDirection(-1) to play forward or reverse. The lottie-interactivity library provides additional scroll and cursor-driven controls.

Why does my Lottie animation timing feel wrong after export?

Timing depends on the frame rate chosen at export: 24fps feels cinematic, 30fps smooth, and 60fps fluid. Apply Easy Ease (F9) and adjust Bezier curves in the After Effects Graph Editor, then fine-tune with anim.setSpeed at runtime.