Re: [css-houdini-drafts] Mechanism to pause an animation

_From @flackr on April 18, 2017 6:15_

Why does returning a falsey value require side-effect-free functions? My only concern with this model is how we know when to start invoking the animation again.

Alternate suggestion, could we allow pausing the input timelines: e.g.
```js
static timelines() { return ['document']; }
animate(elementMap, timelines) {
  // do stuff
  if (done) {
    timelines[0].pause();
    // animate will no longer be called every frame, only when
    // some other input has changed at which point you can call
    // play() on the timeline to resume updating every frame.
  }
}
```

-- 
GitHub Notification of comment by majido
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/808#issuecomment-417053251 using your GitHub account

Received on Wednesday, 29 August 2018 18:17:48 UTC