Agent skill

Lottie Animations Skill: dotLottie and lottie-react for the Web

The lottie-animations skill shows an AI coding agent how to render After Effects animations on the web with lottie-web, dotLottie and lottie-react, including playback controls and scroll triggers.

Install
/plugin marketplace add freshtechbro/claudedesignskills
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the lottie-animations skill?

The lottie-animations skill is a SKILL.md folder in freshtechbro's design skills repository. It teaches an AI coding agent to render After Effects animations exported as Lottie JSON or dotLottie files, using lottie-web, the dotLottie libraries or lottie-react, with patterns for playback, events, scroll and cursor interaction, themes and web workers.

A designer builds an animation in After Effects, exports it through the Bodymovin plugin, and the web renders it as vectors. This skill gives your agent the code patterns for that last step, from a plain HTML canvas to React, Vue and Svelte.

Its description lists triggers such as Lottie, lottie-web, lottie-react, dotLottie and bodymovin, and says it complements GSAP ScrollTrigger and Framer Motion for scroll-driven and interactive animation.

JSON Lottie versus dotLottie

  • JSON Lottie (.json): the original format, exported from After Effects with Bodymovin. It is readable but uncompressed, so files run larger.
  • dotLottie (.lottie): a ZIP holding the JSON plus assets, able to carry several animations and themes. The skill cites reductions of up to 90 percent and recommends it for production.
  • Libraries covered: lottie-web, @lottiefiles/dotlottie-web, @lottiefiles/dotlottie-react and lottie-react.

Patterns inside the skill

  • A basic HTML page that plays a dotLottie file on a canvas.
  • A React component with play, pause, stop and seek buttons.
  • Event listeners for load, play, pause, complete and frame, removed on cleanup.
  • Scroll-driven and cursor-driven playback with lottie-react.
  • Multiple animations and themes from one .lottie file, plus a worker-based renderer.

When it helps and when it does not

Reach for it when

  • A designer hands over an After Effects animation for an icon, loader or onboarding screen.
  • You want a small vector alternative to a GIF or a video.
  • You need playback you can control from code, such as hover, scroll or a click.

Skip it when

  • There is no animation file yet. The skill renders exports from After Effects and does not design the motion for you.
  • You need free-form scroll choreography on ordinary elements. gsap-scrolltrigger fits that better.

Keeping animation files light

  • Export settings in After Effects: skip unused images, prefer glyphs to fonts and use shape layers.
  • Choose dotLottie for compression and lazy load animations with an IntersectionObserver.
  • Pick the canvas renderer for complex animations and offload heavy ones to a web worker.
  • Review wider page speed with web-performance-skill.

Use it with UiChemy

Lottie playback depends on a player script and an animation file, not on a design layout. Build the page with your agent, then import it through UiChemy AI to WordPress. Click Get Started on uichemy.com, then confirm the animation still loads.