Comments (7)
@VisonM 要看情况具体分析,目前小程序上简单的lottie动画性能还行,复杂的动画比较卡就不太适合,当然也不是绝对的。
lottie主要的目的是减少动画文件大小(与gif同等的动画比较)、增强动画效果,但其实光lottie文件大小就要60K(#15)。
我们小程序也是两者结合使用的,在gif不大的情况下,还是优先gif吧。
from lottie-miniapp.
你应该先看看如何在小程序里用npm 随便找了一篇
from lottie-miniapp.
你应该先看看如何在小程序里用npm 随便找了一篇
我看了这篇使用方法都对啊,但同样的方法同样的页面使用其他 npm 包是没有问题的。
from lottie-miniapp.
开发工具貌似和我之前测试的不太一样
新开发工具构建之后的目录为如下
所以需要这样引入就可以了
@zzbo
from lottie-miniapp.
@landn172 正解
from lottie-miniapp.
@landn172 lottie在目前在小程序中复杂动画支持不稳定,lottie动画本身的交互也不复杂。对于动画效果是不是还是直接用gif图成本更低一点,作者怎么看?
from lottie-miniapp.
@zzbo 这个问题是一个通用的问题,会在v1.7.0版本修复这个问题。到时候不用做修改
from lottie-miniapp.
Related Issues (20)
- 请教下真机不报错但不显示,模拟器中可以显示是什么问题 HOT 5
- 支付宝小程序 错误:api.base64ToArrrayBuffer is not a function HOT 10
- What this project is all about? HOT 1
- 支付宝小程序报错 HOT 12
- 在canvas中添加类型type="2d"无法渲染 HOT 6
- 使用uni-app编译后再淘宝小程序运行没有动画 HOT 1
- 礼物播放报错了 HOT 6
- UNIAPP端的报错 HOT 1
- 这个项目还不如不开源 HOT 1
- Component is not found in path "npm/lottie-miniapp/lib/component/lottie" HOT 1
- 请问qq小程序可以使用这个动画库吗 HOT 1
- uniapp 如何控制播放,播放速度,播放时间。 HOT 1
- loadBase64Image:fail Error: ERROR_BASE64SRC_WRITE
- 怎么进行一个动画的缩放??
- uni微信小程序端type=“2d”在模拟器运行正常,真机失效
- uni-app 使用 lottie-miniapp TypeError: Converting circular structure to JSON --> starting at object with constructor 't' HOT 2
- 如何知道canvas已经渲染完成? HOT 1
- 使用过程中出现错误 HOT 4
- 这2天微信小程序加强了eval的审核限制,用了这个库一直审核不通过,麻烦看看是不是哪里违反了限制 HOT 4
- 没有渲染出来 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lottie-miniapp.