Chevron DownOverview


The DeckLayerKeyframes class extends the Keyframes class and offers support for animating layers. The animated features can be any layer prop, such as getRadius. The id property may be provided, and should match the layer id of the layer it's linked too.


See DeckAnimation, the layerKeyframes parameter is passed to DeckLayerKeyframes.



  • id (string) - layer id.

  • features (Array<string>, Optional) - An array of features to animate. If not provided explicitly, the first keyframe must have all animated features.

  • timings (Array<number>) - "N" timestamps for beginning of keyframe.

  • keyframes (Array<Object>) - "N" camera objects to transition between.

    • Each feature is a key in this object. The value defines the animation.
  • easings (Array<() => void) - "N-1" easing functions between keyframes.

More Info

See Keyframes and Keyframes for more information.