You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a.translate = translate.map(function(t, i) { return t || a.translate[i] })
It's a functionality that I often need when I'm coding for user interaction. It might be nice if that were built into the library so that a user wouldn't have to do it themselves each time they wanted to affect only a single axis. If there was the option to translate, rotate, scale, etc. for each axis (translateX, scaleY, rotateZ, etc.), it could really help.
The text was updated successfully, but these errors were encountered:
I've never actually designed anima for interactive animations (when you change them based on user input) but I like the idea. I think I can modify existing .translate() .rotate(). scale() methods to support a second argument as dutation. So you'll get the same API, but if you provide a duration it would modify existing or add a new animation.
Thanks for the response. Actually, my point wasn't about duration, it was about the ability to isolate one axis instead of having to pass all the values at once. The way it currently is, you have to calculate the value for each axis, making sure not to change ones that don't need changing. If you could just change one axis without affecting the others at all, that would be something I would find very useful.
I noticed that in the input example (http://lvivski.com/anima/example/keyboard_mixed.html) you have code to make sure that only one axis is affected at a time:
It's a functionality that I often need when I'm coding for user interaction. It might be nice if that were built into the library so that a user wouldn't have to do it themselves each time they wanted to affect only a single axis. If there was the option to translate, rotate, scale, etc. for each axis (translateX, scaleY, rotateZ, etc.), it could really help.
The text was updated successfully, but these errors were encountered: