Skip to content

Interface: AnimationOptions ​

Options of Chart.animate (Plotly's animationOpts).

Properties ​

PropertyModifierTypeDescription
direction?readonly"forward" | "reverse"'reverse' plays the frames backwards. Default 'forward'.
frame?readonly| FrameOptions | readonly FrameOptions[]Frame timing: one object for every frame, or one per frame (the last repeats).
fromcurrent?readonlybooleanStart after the frame shown last (when it is one of the frames asked for). Default false.
mode?readonly"immediate" | "next" | "afterall"What happens to frames still queued by earlier calls: 'afterall' (default) plays these frames after them, 'next' drops them and starts once the current frame's duration is over, 'immediate' drops them and starts now, interrupting the current transition.
transition?readonly| TransitionOptions | readonly TransitionOptions[]Transition into each frame: one object, or one per frame. Its duration is capped at the frame's duration.

Released under the MIT License.