API

Type Alias AnimationOptimization

AnimationOptimization:
    | { mergeRuntimeAnimations: false }
    | { mergeKeyFrames: boolean; mergeRuntimeAnimations: true }

Interface used to define the optimization options for animations

Type Declaration

  • { mergeRuntimeAnimations: false }
    • mergeRuntimeAnimations: false

      Do not merge runtime animations

      true
      
  • { mergeKeyFrames: boolean; mergeRuntimeAnimations: true }
    • mergeKeyFrames: boolean

      If true, all keyframes evaluation will be merged from the first runtime animation You need to turn on mergeRuntimeAnimations for this to work

      false
      
    • mergeRuntimeAnimations: true

      All runtime animations will be merged into the first animatable

      true