Comments (3)
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.
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.
Obsolete.
from material-motion-js.
Related Issues (20)
- Create interaction for threshold + velocity
- Structure exports
- Demo of responsive importing
- Replace state$ with atRest$
- Fix ParallaxDemo and/or convertTouchEventToPointerEvent HOT 1
- Prevent Chrome iOS drag reload on tossable demo
- Expose pointerEventsFromOpacity$ in views-dom
- Add willChangeFromState to views-dom
- DimensionsSpring HOT 12
- Support in NativeScript HOT 1
- Project status for humans? HOT 1
- Explore inferring getEventStreamFromElement's generic with overrides HOT 1
- Check combineLatest types on reactiveNextOperator
- Add warning if Draggable/Tossable don't have styleStreams connected
- Figure out why tossable.velocity$ is sometimes 0
- Bundle and publish to Google Hosted Libraries HOT 2
- Make combineStyleStreams accept streams of arbitrary CSS HOT 1
- Stack overflow when the source is the inverse of a sink
- git clone [email protected]:material-motion/material-motion-js.git cd material-motion-js yarn $( yarn bin )/lerna bootstrap
- Ms Jean
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 material-motion-js.