Coder Social home page Coder Social logo

Comments (4)

dntzhang avatar dntzhang commented on May 4, 2024

直接运动就ok了!update的时候同步一下运动结果的状态,哪里会去不断update相关值?

from omi.

dntzhang avatar dntzhang commented on May 4, 2024

https://github.com/AlloyTeam/omi/blob/master/tutorial/omi-transform.md

from omi.

YangDaniu avatar YangDaniu commented on May 4, 2024

就比如我要做一个淡入淡出的效果,这个效果和滚动距离顶部的距离有关系,我的做法是

这样我需要不断调用Omi.instance.update,这种做法是否合理?是否会导致其他数据的diff而带来一些性能问题呢?因为移动端动画性能还是比较重要的 我使用iscoll的scroll事件进行更新在快速移动时感觉有一些闪屏的情况

from omi.

dntzhang avatar dntzhang commented on May 4, 2024

不断调用Omi.instance.update不合理!
建议:直接操作dom!直接操作dom!直接操作dom!运动完成再同步一个状态给组件的data就可以了。

from omi.

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.