News for hackers. Stuff that matters.
Re:React Tween State by seanmcdirmid on Friday November 28, 2014 @07:34AM (#8670718)
Reading the github page, though, this is really about tweening with no mention of interruption. However, using Verlet (not Newtonian like rebound-js!) you can easily combine both approaches since Verlet allows you to mess with a position directly (velocity is implicit in position deltas, so really stable although less accurate).

I wrote a rejected paper about this a few years ago; it might be useful as a reference:

http://research.microsoft.com/pubs/191705/uiphysics09.pdf

I wrote that when I was doing a lot of work with WPF, whose animation/data binding system is fairly similar to what is being explored in Javascript today (with frameworks like React). But beyond data binding and canned animations, I think physics is the next step.

Re:React Tween State by dandelany on Friday November 28, 2014 @12:40PM (#8671579)
Re: interruption, from the docs:

> stackBehavior (default: tweenState.stackBehavior.ADDITIVE). Subsequent tweening to the same state value will be stacked (added together). This gives a smooth tweening effect that is iOS 8's new default... The other option is tweenState.stackBehavior.DESTRUCTIVE, which replaces all current animations of that state value by this new one.

So DESTRUCTIVE is what allows interruption.

Re:React Tween State by seanmcdirmid on Friday November 28, 2014 @06:54PM (#8672585)
This is not much different from WPF's animation support, and I don't think it really helps. The interruptions are still not very natural looking. It was definitely useless for Surface (the table, not the tablet) when I was doing UX prototypes for it.
Re:React Tween State by chenglou on Friday November 28, 2014 @07:30PM (#8672655)
Additive is a better "interruption" in a lot of cases from what I've seen. Destructive was added after the fact for completeness. What do you think?
Re:React Tween State by peterhunt on Friday November 28, 2014 @09:29PM (#8672884)
I would love to chat with you about what you've learned working on this stuff. If you're interested, drop me an email at floydophone at gmail dot com