Skip to content

Instantly share code, notes, and snippets.

@felixblaschke
Created January 22, 2021 15:45
Show Gist options
  • Save felixblaschke/61b17e7f3214e0cba29b217e16eea4f0 to your computer and use it in GitHub Desktop.
Save felixblaschke/61b17e7f3214e0cba29b217e16eea4f0 to your computer and use it in GitHub Desktop.
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