其实对于普通的动效和简单动画, 使用原生代码实现已经足够, Lottie 是为了复杂动画而生的, 下面来看几个 Lottie 实现的几个动画例子:
?...要使用 Lottie, 需要在借助 Bodymovin 插件将动画工程文件从 AE 中导出成 JSON。Lottie 分别为每个平台实现了一套 Player, 只需载入JSON动画文件就可播放。..., Android and iOS, and React Native. http://airbnb.io/lottie/
安装后选择该插件:
?...这里我们使用 Lottie 的 React Binding, 运行 npm install -S react react-dom react-lottie babel-core babel-plugin-transform-class-properties...- airbnb/lottie-web: Render After Effects animations natively on Web, Android and iOS, and React Native