Created
October 20, 2025 18:29
-
-
Save fredgrott/fa3f6979edbb4421613ed96b26e4bf29 to your computer and use it in GitHub Desktop.
motor, spanning sequencing
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
| import 'package:motor/motor.dart'; | |
| final logoSequence = MotionSequence.spanning({ | |
| 0.0: LogoState(opacity: 0), // Start (0% of total time) | |
| 1.0: LogoState(opacity: 1), // 50% of total time | |
| 2.0: LogoState(opacity: 1, text: 1), // 100% of total time | |
| }, motion: .linear(Duration(seconds: 2))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment