Git Product home page Git Product logo

Comments (7)

landn172 avatar landn172 commented on May 29, 2024 1

@VisonM 要看情况具体分析,目前小程序上简单的lottie动画性能还行,复杂的动画比较卡就不太适合,当然也不是绝对的。
lottie主要的目的是减少动画文件大小(与gif同等的动画比较)、增强动画效果,但其实光lottie文件大小就要60K(#15)。
我们小程序也是两者结合使用的,在gif不大的情况下,还是优先gif吧。

from lottie-miniapp.

bigbossx avatar bigbossx commented on May 29, 2024

你应该先看看如何在小程序里用npm 随便找了一篇

from lottie-miniapp.

zzbo avatar zzbo commented on May 29, 2024

你应该先看看如何在小程序里用npm 随便找了一篇

我看了这篇使用方法都对啊,但同样的方法同样的页面使用其他 npm 包是没有问题的。

from lottie-miniapp.

landn172 avatar landn172 commented on May 29, 2024

开发工具貌似和我之前测试的不太一样
新开发工具构建之后的目录为如下
image
所以需要这样引入就可以了
image
@zzbo

from lottie-miniapp.

bigbossx avatar bigbossx commented on May 29, 2024

@landn172 正解

from lottie-miniapp.

bigbossx avatar bigbossx commented on May 29, 2024

@landn172 lottie在目前在小程序中复杂动画支持不稳定,lottie动画本身的交互也不复杂。对于动画效果是不是还是直接用gif图成本更低一点,作者怎么看?

from lottie-miniapp.

landn172 avatar landn172 commented on May 29, 2024

@zzbo 这个问题是一个通用的问题,会在v1.7.0版本修复这个问题。到时候不用做修改

from lottie-miniapp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.