Skip to content

Commit

Permalink
Update files/en-us/web/api/animation/overallprogress/index.md
Browse files Browse the repository at this point in the history
Co-authored-by: wbamberg <[email protected]>
  • Loading branch information
chrisdavidmills and wbamberg authored Jan 21, 2025
1 parent 9f3f148 commit 21e0703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/api/animation/overallprogress/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const timingProps = {

Next we add a `"click"` event listener to the `<button>` via [`addEventListener()`](/en-US/docs/Web/API/EventTarget/addEventListener) so that, when pressed, it:

1. Starts the animation running using {{domxref("Element.animate()")}}, passing it the keyframes and options defined earlier and storing the returned {{domxref("Animation")}} instance in the `animation` variable.
1. Starts the animation running using {{domxref("Element.animate()")}}, passing it the keyframes and options defined earlier and assigning the returned {{domxref("Animation")}} instance to the `animation` variable.
2. Runs a function called `updateProgress()` via the {{domxref("Window.requestAnimationFrame", "requestAnimationFrame()")}} method, which handles updating the percentage process display.

```js
Expand Down

0 comments on commit 21e0703

Please sign in to comment.