@Saccc_c: 发现一个动画生成神器,直接把自然语言转化成酷炫Lottie动效 下面视频演示的效果都可以一次直出,很牛逼 (提示词指南放评论区了,可以直接喂给AI帮你写好高质量提示词) 把它和HyperFrames这类视频制作工具结合,又会有不少玩法 终…
摘要
一个开源工具,利用AI代理(如Claude Code/Codex)将自然语言直接转化为可生产的Lottie动效,支持一键安装和提示词指南。
查看缓存全文
缓存时间: 2026/06/12 10:58
发现一个动画生成神器,直接把自然语言转化成酷炫Lottie动效
下面视频演示的效果都可以一次直出,很牛逼 (提示词指南放评论区了,可以直接喂给AI帮你写好高质量提示词)
把它和HyperFrames这类视频制作工具结合,又会有不少玩法
终端一键安装: $ npx skills add diffusionstudio/lottie
仓库链接:https://github.com/diffusionstudio/lottie…
diffusionstudio/lottie
Source: https://github.com/diffusionstudio/lottie
Text-to-lottie is an open-source harness 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 will setup a harness that allows you to inspect/edit the generated lottie with the included player.
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. The agent can simulate these through group transforms.
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
import LottieView from "lottie-react-native";
export default function Loader() {
return (
<LottieView
source={require("./animation.json")}
autoPlay
loop
style={{ width: 200, height: 200 }}
/>
);
}
Alternatively, React Native Skia can also render Lottie animations via its Skottie module, including on the web. It lets you customize animation properties, assets, and typographies at runtime, and since Skottie is a regular Skia drawing, it can be composed into a larger Skia scene alongside shaders, effects, and masks.
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: ^latest
import 'package:lottie/lottie.dart';
Lottie.asset('assets/animation.json')
Sac (@Saccc_c): 如果你在2009年低点买了20万英伟达,现在你将身价过亿
用HyperFrames+Lottie skill做了下面这个英伟达股价回顾史
相似文章
@xiangxiang103: 刚发现一个神站! https://motionsites.ai 里面全是高端AI网站提示词,复制粘贴给你的AI就能秒出带动画的超美落地页、SaaS、作品集…… 几分钟做出以前要花几天做的效果,太香了!
发现一个神站 motionsites.ai,提供高端AI网站提示词,复制粘贴即可快速生成带动画的落地页、SaaS和作品集,大幅提升效率。
@hiwise_aigc: 卧槽,终于有人把 AI 听不懂的「丝滑动画」做成参考答案了! 搞 Vibe Coding 视频最烦的就是:脑子里想的是电影级动效,跟 AI 描述半天,做出来却像 PPT 翻页。 推荐开源 Skill:Motion Prompt。 把各种动…
开源 Skill「Motion Prompt」将各种动画、运镜、转场和 UI 动效整理为带可视化演示的命名库,用户可直接把提示词和参考实现交给 Claude Code 或 Codex,避免反复向 AI 描述「丝滑动画」却得不到想要效果的问题。
@slashui: 对动画的理解,还得是日本人。 一位日本开发者把动画设计中常用的专业术语,整理成了一个可以直接喂给 AI 的资源库。 涵盖镜头语言、UI 组件、动态图形等 5 大领域,足足 120 个动态效果案例,而且每个都有直观的动画演示。 使用方法也特…
一位日本开发者将动画设计的专业术语整理成可直接喂给 AI 的资源库,涵盖镜头语言、UI 组件、动态图形等 5 大领域、120 个带动画演示的动效案例,可配合 Claude Code 或 Codex 使用。
Claude Design Just Unlocked AI Motion Graphics
Claude Design 的动画功能可利用提示词和转录文本生成与语音同步的动态图形,本文介绍了作者使用的提示词、工作流和剪辑流程。
@iluciddreaming: Codex 上搭「视频内容工厂」,装好这几个插件就能把文本变成视频: HyperFrames — 负责「想」,创意策划 ElevenLabs Skill — 负责「说」,AI 配音 Remotion Skill — 负责「动」,程序化动画…
在Codex平台上通过HyperFrames、ElevenLabs配音、Remotion动画和Captions字幕等插件,实现从文本到视频的自动化制作流水线。