-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add and refurbish an old tweening function
Source: Alhadis/De-Casteljau@10df4ca. The exact same code became used in the development of DON Smallgoods' website, where the Tween class powers smooth autoscroll effects on its homepage. As of this writing, the class is *still* being used on isdonisgood.com.au, two years later. The "refurbished" version bears little resemblance to the old 2015 code. There's no class-based implementation, as I felt instances were overkill for something which was designed to play only once. Rewinding or pausing playback is done by cancelling the old tween and starting a new one from where the last interpolated value was at.
- Loading branch information
Showing
2 changed files
with
183 additions
and
0 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