hareactive icon indicating copy to clipboard operation
hareactive copied to clipboard

Animation tools

Open limemloh opened this issue 7 years ago • 2 comments

I would be nice to have some tools to help with describing transitions with behaviors. I imagine an API like this:

const config = {
  duration: 5,
  timingFunction: linear,
  delay: 0
}
const t = transitionBehavior(config, numberStream, initialValue);

numberStream is telling which values the resulting behavior should make transitions to.

This together with a collection of timing functions would be a good start.

limemloh avatar May 11 '17 06:05 limemloh

What is the initial value of the behavior returned by transitionBehavior?

paldepind avatar May 11 '17 09:05 paldepind

In my example, it is the 3rd argument, which has to be a number

limemloh avatar May 11 '17 10:05 limemloh