diff --git a/5-animation/3-js-animation/article.md b/5-animation/3-js-animation/article.md index a6c1215e..3ff78618 100644 --- a/5-animation/3-js-animation/article.md +++ b/5-animation/3-js-animation/article.md @@ -60,7 +60,7 @@ If we run them separately, each one with its own `setInterval(..., 20)`, then th Each `setInterval` triggers once per `20ms`, but they are independent, so we have several independent runs within `20ms`. -These several independant actions should be grouped together, because it's easier for the browser to redraw things once per `20ms`. +These several independent actions should be grouped together, because it's easier for the browser to redraw things once per `20ms`. In other words, this: @@ -105,7 +105,7 @@ The `callback` gets one argument -- the time passed from the beginning of the pa Usually `callback` runs very soon, unless the CPU is overloaded or the laptop battery is almost discharged, or there's another reason. -The code below shows the time between first 20 runs fo `requestAnimationFrame`. Usually it's 10-20ms: +The code below shows the time between first 20 runs for `requestAnimationFrame`. Usually it's 10-20ms: ```html run height=40 refresh