-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor and improve animation logic.
- Make the start state more reliable by delaying for 17ms (1 frame at 60 frames/second) before running the animation. - Refactor the animation logic into separate dedicated functions for clarity: prepare, run, complete. - Store animation-related data in a dedicated object. - Rename a couple DOM methods to better communicate what they do.
- Loading branch information
Showing
2 changed files
with
167 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters