Experience-Monks / f1

A stateful ui library
MIT License
78 stars 5 forks source link

Add transition example for animating targets individually #17

Open BrendanNeufeld opened 8 years ago

BrendanNeufeld commented 8 years ago

There is only an example of animating properties individually. I think it this would be a useful example as well:

ui.transitions( [
  {
    from: 'out',
    to: 'idle',
    animation: {
      duration: 1, ease: eases.expoOut,

      itemToAnimate: { duration: 0.5, delay: 0.5, ease: eases.quadOut }
    }
  },
  {
    from: 'idle',
    to: 'out',
    animation: { duration: 0.5, ease: eases.expoIn }
  }
]);