Created
January 22, 2021 15:45
-
-
Save felixblaschke/61b17e7f3214e0cba29b217e16eea4f0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var _tween = TimelineTween<AniProps>() | |
..addScene(begin: 0.seconds, duration: 1.seconds) // 0 - 1s | |
.animate(AniProps.x, tween: (0.0).tweenTo(100.0)) // move x: 0 -> 100 | |
..addScene(begin: 1.seconds, duration: 1.seconds) // 1 - 2s | |
.animate(AniProps.y, tween: (0.0).tweenTo(100.0)) // move y: 0 -> 100 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment