Options
All
  • Public
  • Public/Protected
  • All
Menu

Module data/JsonAnimationConfig

Index

Type aliases

AnimationDef

AnimationDef: { duration: number; interpolation?: InterpolationDef; transforms: TransformDef[] }

tr: Array of TransformFunction. d: Duration for which the animation. i: Interpolation function for the animation.

Type declaration

EasingType

EasingType: "linear" | "quad" | "circle" | "elastic" | "bounce" | "back" | "cubic" | "sin" | "exp" | "ease"

InterpolationDef

InterpolationDef: { easing: EasingType; params?: InterpolationParams }

e: Defines the easing function p: Additional params needed by some easing functions

Type declaration

  • easing: EasingType
  • Optional params?: InterpolationParams

TransformDef

TransformDef: { from: number; key: TransformType; to: number }

key: Defines the property to transform f: from value t: to value

Type declaration

TransformType

TransformType: "scale" | "fade" | "opacity" | "translateX" | "translateY" | "rotate" | "rotateY" | "rotateX" | "scaleX" | "scaleY"

Generated using TypeDoc