animate.d.ts 1.4 KB

1234567891011121314151617181920212223
  1. export type Animation = FadeInAnimation | FadeOutAnimation | ScaleInXAnimation | ScaleOutXAnimation | ScaleInYAnimation | ScaleOutYAnimation | WaveInAnimation | MorphingAnimation | ZoomInAnimation | ZoomOutYAnimation | PathInAnimation | GrowInXAnimation | GrowInYAnimation;
  2. export type AnimationTypes = 'fadeIn' | 'fadeOut' | 'scaleInX' | 'scaleOutX' | 'scaleInY' | 'scaleOutY' | 'waveIn' | 'morphing' | 'zoomIn' | 'zoomOut' | 'pathIn' | 'growInX' | 'growInY';
  3. export type FadeInAnimation = BaseAnimation<'fadeIn'>;
  4. export type FadeOutAnimation = BaseAnimation<'fadeOut'>;
  5. export type ScaleInXAnimation = BaseAnimation<'scaleInX'>;
  6. export type ScaleOutXAnimation = BaseAnimation<'scaleOutX'>;
  7. export type ScaleInYAnimation = BaseAnimation<'scaleInY'>;
  8. export type ScaleOutYAnimation = BaseAnimation<'scaleOutY'>;
  9. export type WaveInAnimation = BaseAnimation<'waveIn'>;
  10. export type MorphingAnimation = BaseAnimation<'morphing'>;
  11. export type ZoomInAnimation = BaseAnimation<'zoomIn'>;
  12. export type ZoomOutYAnimation = BaseAnimation<'zoomOut'>;
  13. export type PathInAnimation = BaseAnimation<'pathIn'>;
  14. export type GrowInXAnimation = BaseAnimation<'growInX'>;
  15. export type GrowInYAnimation = BaseAnimation<'growInY'>;
  16. type BaseAnimation<T> = {
  17. type?: T;
  18. duration?: number;
  19. delay?: number;
  20. easing?: string;
  21. fill?: 'forwards' | 'none' | 'backwards' | 'both' | 'auto';
  22. };
  23. export {};