Open lettertwo opened 10 years ago
Should they accept a target or should it be assumed to be the component instance?
hmm, not sure. using the chaining methods (like from
, to
, and fromTo
) becomes an issue then—we'd have to implement our own wrapper with those methods that omit the target
argument, i guess.
Maybe we just expose partially applied forms of those (tweenTo
, tweenFrom
, and tweenFromTo
) in addition to the create*
s? Cut down on some of the boilerplate.
These are React component mixins that add
createTween
andcreateTimeline
functions.They should:
new Tween
ornew Timeline
wouldkill()
them when the target component unmounts