diff --git a/snippets/recordFrames.md b/snippets/recordFrames.md index 17a71300c..938058ae9 100644 --- a/snippets/recordFrames.md +++ b/snippets/recordFrames.md @@ -2,9 +2,8 @@ Invokes the provided callback on each animation frame. -Use recursion. Provided that `running` is `true`, continue invoking `window.requestAnimationFrame`. Return an object -with two methods `start` and `stop` to allow manual control of the recording. Omit the second argument, `autoStart`, -to implicitly call start when the function is invoked. +Use recursion. Provided that `running` is `true`, continue invoking `window.requestAnimationFrame()` and invoking the +provided callback. Return an object with two methods `start` and `stop` to allow manual control of the recording. Omit the second argument, `autoStart`, to implicitly call `start` when the function is invoked. ```js const recordFrames = (callback, autoStart = true) => {