easing.d.ts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. declare type easingFunc = (percent: number) => number;
  2. export declare type AnimationEasing = keyof typeof easingFuncs | easingFunc;
  3. declare const easingFuncs: {
  4. linear(k: number): number;
  5. quadraticIn(k: number): number;
  6. quadraticOut(k: number): number;
  7. quadraticInOut(k: number): number;
  8. cubicIn(k: number): number;
  9. cubicOut(k: number): number;
  10. cubicInOut(k: number): number;
  11. quarticIn(k: number): number;
  12. quarticOut(k: number): number;
  13. quarticInOut(k: number): number;
  14. quinticIn(k: number): number;
  15. quinticOut(k: number): number;
  16. quinticInOut(k: number): number;
  17. sinusoidalIn(k: number): number;
  18. sinusoidalOut(k: number): number;
  19. sinusoidalInOut(k: number): number;
  20. exponentialIn(k: number): number;
  21. exponentialOut(k: number): number;
  22. exponentialInOut(k: number): number;
  23. circularIn(k: number): number;
  24. circularOut(k: number): number;
  25. circularInOut(k: number): number;
  26. elasticIn(k: number): number;
  27. elasticOut(k: number): number;
  28. elasticInOut(k: number): number;
  29. backIn(k: number): number;
  30. backOut(k: number): number;
  31. backInOut(k: number): number;
  32. bounceIn(k: number): number;
  33. bounceOut(k: number): number;
  34. bounceInOut(k: number): number;
  35. };
  36. export default easingFuncs;