26 lines
731 B
Plaintext
26 lines
731 B
Plaintext
// Animation System
|
|
// Standard animation durations and easing functions
|
|
|
|
// Animation duration scale
|
|
export struct AnimationDurations {
|
|
fast: duration,
|
|
normal: duration,
|
|
slow: duration,
|
|
}
|
|
|
|
// Global animation configuration
|
|
export global Animations {
|
|
// Duration presets
|
|
out property <AnimationDurations> durations: {
|
|
fast: 150ms,
|
|
normal: 200ms,
|
|
slow: 300ms,
|
|
};
|
|
|
|
// Easing functions (cubic-bezier)
|
|
out property <easing> ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
out property <easing> ease-in: cubic-bezier(0.4, 0, 1, 1);
|
|
out property <easing> ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
out property <easing> ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
|
}
|