Skip to content

Commit

Permalink
Remove window prefix in requestAnimationFrame example (#35456)
Browse files Browse the repository at this point in the history
Update index.md

window prefix unnecessary and inconsistent
  • Loading branch information
senocular authored Aug 15, 2024
1 parent d681d02 commit a64b3db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/en-us/web/api/window/requestanimationframe/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ function step(timeStamp) {
element.style.transform = `translateX(${shift}px)`;
if (shift < 200) {
previousTimeStamp = timeStamp;
window.requestAnimationFrame(step);
requestAnimationFrame(step);
}
}

window.requestAnimationFrame(step);
requestAnimationFrame(step);
```

The following three examples illustrate different approaches to setting the zero point in time,
Expand Down

0 comments on commit a64b3db

Please sign in to comment.