
Text-to-Lottie(Diffusion Studio)
Skill让 agent 按文字描述或 SVG 生成可上线的 Lottie 动画(图标动效、加载动画、数据动画等),自带本地播放器实时预览微调,导出的 JSON 可用于网页、App 或导入 After Effects。需要本机 Node.js 环境。
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.
Created with Text-to-Lottie
|
|
Quick Start
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.
Prompt guide
1. Ground the model
Provide SVGs, real-world data, or screenshots whenever possible. Results are significantly better when the animation is based on concrete assets.
2. Use motion design terminology
Describe timing and movement using motion design language like ease-in, ease-out, and ease-in-out.
3. Think like a camera operator
Professional motion graphics often rely on camera movement. Include camera pushes, pans, zooms, and rig-like motion in your prompt.
4. Request the controls you need
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.
5. Specify FPS and duration
If your animation requires a specific frame rate or length, include the desired FPS and total frame count in the prompt.
Using the Generated Animation
Generated animations can be used directly as Lottie JSON files or imported into After Effects for further refinement.
Web / vanilla HTML
<script src="https://unpkg.com/lottie-web/build/player/lottie.min.js"></script>
<div id="anim"></div>
<script>
lottie.loadAnimation({
container: document.getElementById("anim"),
renderer: "svg",
loop: true,
autoplay: true,
path: "/animations/my-animation.json"
});
</script>
React Native
Use React Native Skia 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.
import { Skia, Canvas, Skottie, useClock } from "@shopify/react-native-skia";
import { useDerivedValue } from "react-native-reanimated";
const animation = Skia.Skottie.Make(JSON.stringify(require("./animation.json")));
export default function Loader() {
const clock = useClock();
const frame = useDerivedValue(
() => ((clock.value / 1000) % animation.duration()) * animation.fps()
);
return (
<Canvas style={{ width: 200, height: 200 }}>
<Skottie animation={animation} frame={frame} />
</Canvas>
);
}
iOS Swift
import Lottie
let animationView = LottieAnimationView(name: "animation")
animationView.frame = view.bounds
animationView.contentMode = .scaleAspectFit
animationView.loopMode = .loop
view.addSubview(animationView)
animationView.play()
Android Kotlin
val view = findViewById<LottieAnimationView>(R.id.animationView)
view.setAnimation(R.raw.animation)
view.loop(true)
view.playAnimation()
Flutter
dependencies:
lottie: ^1.0.0
import 'package:lottie/lottie.dart';
Lottie.asset('assets/animation.json')
相关资源

Scroll World
Skill为任意品牌制作滚动驱动的「穿越 3D 世界」落地页:访谈主题、品牌与镜头风格,用 Higgsfield 生成场景图,用 Monid(Seedance 2.0,按片段付费)或 Higgsfield 积分生成无缝衔接的镜头视频,再接入框架无关的滚动播放引擎。需要 Higgsfield CLI 与 ffmpeg,会产生费用。
oso95/scroll-world10.2k
Frontend Design
Skill引导 agent 在新建或改版界面时先确定视觉方向,在配色、字体与布局上做有取舍的选择,避免千篇一律的模板化 AI 界面。Anthropic 官方技能。
anthropics/skills181k
UI UX Pro Max
Skill界面设计知识库技能:按产品类型检索界面风格、配色、字体搭配、图表与 UX 规范,并生成完整设计系统,覆盖 React、SwiftUI、Flutter 等 22 种技术栈。需本机安装 Python 3。
nextlevelbuilder/ui-ux-pro-max-skill136k
Taste Skill
Skill让 agent 生成的前端摆脱模板感:先判断设计方向,再用布局变化、动效强度、信息密度三个参数调节效果;另含改版审计、极简与粗野主义风格及设计参考图生成等技能。
Leonxlnx/taste-skill97.4k
Impeccable
Skill前端设计打磨技能:一个技能提供 polish、audit、critique、typeset 等 24 条命令,并用 61 条确定性检测规则找出典型的 AI 生成界面问题,支持在浏览器里实时迭代。适用于 Claude Code、Codex、Cursor 等工具。
pbakaus/impeccable82k
Skills For Designers and Engineers
SkillSonner、Vaul 作者 Emil Kowalski 编写的设计工程技能:帮助选择动画曲线与时长,评审和改进动效,吸收 Apple 设计原则,让网页在手机上更像原生应用,并协助选择 UI 库、做多版本原型。
emilkowalski/skills46.5k