Skip to content

Instantly share code, notes, and snippets.

@fredgrott
Created October 20, 2025 18:29
Show Gist options
  • Save fredgrott/fa3f6979edbb4421613ed96b26e4bf29 to your computer and use it in GitHub Desktop.
Save fredgrott/fa3f6979edbb4421613ed96b26e4bf29 to your computer and use it in GitHub Desktop.
motor, spanning sequencing
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