Code Monkey home page Code Monkey logo

Comments (3)

appsforartists avatar appsforartists commented on June 12, 2024

Just looked at the main players I could find. Looks like TweenLite, anime, and popmotion all build the transform function for you. (mo.js and velocity give you an interpolated value and make you do it.) TweenLite has a non-free license, leaving anime and popmotion worthy of further investigation.

To comply with the Starmap and the notion of composability, I want to ensure that multiple plans affecting the same property can compound (e.g. a move, then a scale, then a move should do the right thing). At first blush, it looks like anime and popmotion map from dictionaries to the transform function, so I'm not sure if reordering transform functions or multiple calls to the same transform function are supported. I also haven't looked in to what access they give you to the interpolated values during an animation.

The whole reason this is hard in the first place is because there's no guarantee a new plan won't arrive while an animation is happening, which means the Performer needs to know how to integrate the new plan into its partially completed performance. This is already something I'll be solving with a manual performance for #36. It's possible (perhaps likely) that I'll just use that JS solution for both React and DOM elements. Unless this sort of ad hoc dynamicism is totally in the wheelhouse of anime or popmotion, delegating is probably just too complex to do right.

from material-motion-js.

appsforartists avatar appsforartists commented on June 12, 2024

If you try to set transform during a Web Animation, your change won't take effect until the animation completes (unless we kept track of in-flight animations in TweenPerformerWeb and manually cancelled/replaced them).

One more reason to move to a manual performing model, where the values are known and controlled by JavaScript

from material-motion-js.

appsforartists avatar appsforartists commented on June 12, 2024

Obsolete.

from material-motion-js.

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.