-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PickEmotion CSS Transitions -> Animation Loop
The end result is different; not better, not worse, just different. The code is a bit more complicated. The motivating reason for this change is simple: there's no CSS transitions to use in native, so in order to keep parity, I need to implement this without them! This also incorporates another compatibility change: on native, theres no convenient way to get the rendered size of components until a frame *after* they successfully render. This doesn't go as far as delaying checking the size until a frame later, but it does ensure the interface is compatible with that and moves the size check to be after the words are already mounted. Hence the passing WriteableValueWithCallbacks to the Word component to get the size, rather then precomputing. Same deal with the container size, since that depends on the word sizes
- Loading branch information
1 parent
b132e11
commit 5df1cc1
Showing
3 changed files
with
497 additions
and
155 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
Oops, something went wrong.