Skip to content
Back to search

lottie

SkillWorks with Claude CodeGitHub

Generate production-ready Lottie animations with Claude Code or Codex

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/diffusionstudio-lottie/badge.svg)](/listings/diffusionstudio-lottie)

HTML

<a href="/listings/diffusionstudio-lottie"><img src="/api/listings/diffusionstudio-lottie/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

Install the skill:

npx skills add diffusionstudio/lottie

Then ask your coding agent to generate a Lottie animation using `text-to-lottie`.

Example prompt: > Create a Lottie animation from the SVG path in https://github.com/JaceThings/SF-Hello/blob/main/SVG/hello-en.svg. Reveal the path with an animation that follows the natural path direction. Apply a premium apple themed gradient to the path. Use ease-in-out timing, a transparent background, and preserve the original SVG geometry.

The agent sets up the workspace and the included player, where each animation lives as a scene inside a project. Scenes load automatically from `public/projects/<project>/<scene>/lottie.json` and live-update in the player as the agent edits them — so you can inspect, scrub, and refine the generated Lottie in real time.

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 129 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. <p align="center">
  2. <img src="assets/header.gif" alt="Text to Lottie" width="100%" />
  3. </p>
  4. [![](https://img.shields.io/discord/1115673443141156924?style=flat&logo=discord&logoColor=white&color=5865F2)](https://discord.com/invite/zPQJrNGuFB)
  5. [![](https://img.shields.io/badge/Follow%20for-Updates-black?logo=x&logoColor=white)](https://x.com/diffusionhq)
  6. [![](https://img.shields.io/badge/Combinator-F24-orange?logo=ycombinator&logoColor=white)](https://www.ycombinator.com/companies/diffusion-studio)
  7. [English](README.md) | [繁體中文](README.zh-TW.md)
  8. **Text-to-lottie** is an open-source framework for generating production ready Lottie animations with claude code/codex or any other coding agent supporting skills.
  9. ## Created with Text-to-Lottie
  10. <table>
  11. <tr>
  12. <td>
  13. <img src="assets/demo-1.gif" width="350" />
  14. </td>
  15. <td>
  16. <img src="assets/demo-2.gif" width="350" />
  17. </td>
  18. </tr>
  19. </table>
  20. ## Quick Start
  21. Install the skill:
  22. ```bash
  23. npx skills add diffusionstudio/lottie
  24. ```
  25. Then ask your coding agent to generate a Lottie animation using `text-to-lottie`.
  26. Example prompt:
  27. > Create a Lottie animation from the SVG path in https://github.com/JaceThings/SF-Hello/blob/main/SVG/hello-en.svg. Reveal the path with an animation that follows the natural path direction. Apply a premium apple themed gradient to the path. Use ease-in-out timing, a transparent background, and preserve the original SVG geometry.
  28. The agent sets up the workspace and the included player, where each animation lives as a scene inside a project. Scenes load automatically from `public/projects/<project>/<scene>/lottie.json` and live-update in the player as the agent edits them — so you can inspect, scrub, and refine the generated Lottie in real time.
  29. ## Prompt guide
  30. ### 1. Ground the model
  31. Provide SVGs, real-world data, or screenshots whenever possible. Results are significantly better when the animation is based on concrete assets.
  32. ### 2. Use motion design terminology
  33. Describe timing and movement using motion design language like ease-in, ease-out, and ease-in-out.
  34. ### 3. Think like a camera operator
  35. Professional motion graphics often rely on camera movement. Include camera pushes, pans, zooms, and rig-like motion in your prompt.
  36. ### 4. Request the controls you need
  37. By default, outputs usually only expose a background color control. If you want to customize other properties, explicitly ask the agent to create controls for them.
  38. ### 5. Specify FPS and duration
  39. If your animation requires a specific frame rate or length, include the desired FPS and total frame count in the prompt.
  40. ## Using the Generated Animation
  41. Generated animations can be used directly as Lottie JSON files or imported into After Effects for further refinement.
  42. ### Web / vanilla HTML
  43. ```html
  44. <script src="https://unpkg.com/lottie-web/build/player/lottie.min.js"></script>
  45. <div id="anim"></div>
  46. <script>
  47. lottie.loadAnimation({
  48. container: document.getElementById("anim"),
  49. renderer: "svg",
  50. loop: true,
  51. autoplay: true,
  52. path: "/animations/my-animation.json"
  53. });
  54. </script>
  55. ```
  56. ### React Native
  57. Use [React Native Skia](https://shopify.github.io/react-native-skia/docs/skottie/) to render Lottie animations via its Skottie module. It supports iOS, Android, and web, and lets you customize animation properties, assets, and typographies at runtime.
  58. ```tsx
  59. import { Skia, Canvas, Skottie, useClock } from "@shopify/react-native-skia";
  60. import { useDerivedValue } from "react-native-reanimated";
  61. const animation = Skia.Skottie.Make(JSON.stringify(require("./animation.json")));
  62. export default function Loader() {
  63. const clock = useClock();
  64. const frame = useDerivedValue(
  65. () => ((clock.value / 1000) % animation.duration()) * animation.fps()
  66. );
  67. return (
  68. <Canvas style={{ width: 200, height: 200 }}>
  69. <Skottie animation={animation} frame={frame} />
  70. </Canvas>
  71. );
  72. }
  73. ```
  74. ### iOS Swift
  75. ```swift
  76. import Lottie
  77. let animationView = LottieAnimationView(name: "animation")
  78. animationView.frame = view.bounds
  79. animationView.contentMode = .scaleAspectFit
  80. animationView.loopMode = .loop
  81. view.addSubview(animationView)
  82. animationView.play()
  83. ```
  84. ### Android Kotlin
  85. ```kotlin
  86. val view = findViewById<LottieAnimationView>(R.id.animationView)
  87. view.setAnimation(R.raw.animation)
  88. view.loop(true)
  89. view.playAnimation()
  90. ```
  91. ### Flutter
  92. ```yaml
  93. dependencies:
  94. lottie: ^1.0.0
  95. ```
  96. ```dart
  97. import 'package:lottie/lottie.dart';
  98. Lottie.asset('assets/animation.json')
  99. ```

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.