This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Animate

Animate[expr, {u, umin, umax}]
generates an animation of expr in which u varies continuously from umin to umax.
Animate[expr, {u, umin, umax, du}]
takes u to vary in steps du.
Animate[expr, {u, {u1, u2, ...}}]
makes u take on discrete values u1, u2, ....
Animate[expr, {u, ...}, {v, ...}, ...]
varies all the variables u, v, ....
  • expr can be any expression; it does not need to be a graphic.
  • Animate evaluates expr only for the specific literal values of u it requires.
  • Animate[expr, {{u, u0}, umin, umax}] takes u to have initial value u0.
  • When umax is finite, u is taken to vary at such a rate as to make the animation last for the time given by the setting for DefaultDuration.
  • Animate[expr, {u, umin, Infinity}] makes an infinite animation in which the value of u increases forever at a rate of one unit per second.
  • Animate[expr, {{u, u0, ulbl}, ...}, ...] uses ulbl as the label for the u animator, etc.
  • Animate has the same options as Manipulate, with the following additions and changes:
AnimationDirectionForwardthe direction of the animation
AnimationRateAutomaticthe rate at which to take variables to vary
AnimationRepetitionsInfinityhow many times to run before stopping
AnimationRunningTruewhether the animation is running
AppearanceElementsAutomaticcontrol elements to include
BaseStyle{}base style specifications for the animator
DefaultDuration5.the default duration in seconds
DeinitializationNonean expression to evaluate if the output from the Animate is deleted
DisplayAllStepsFalsewhether to force all discrete steps to be displayed
Exclusions{}specific values to be excluded
InitializationNonean expression to evaluate when output is first generated
LabelStyle{}style specifications for the label area
RefreshRateAutomaticthe default number of times per second to refresh
ShrinkingDelayAutomatichow long to delay before shrinking if the displayed object gets smaller
  • The default for du is determined by the setting for the RefreshRate option, and is negative if umin is larger than umax.
  • If du is given as 0, it is taken to be the minimum positive or negative value determined by the setting for RefreshRate.
  • The following elements are included by default: "ProgressSlider", "PlayPauseButton", "FasterSlowerButtons", "DirectionButton". These elements can be specified in any order in a list given as the setting for AppearanceElements.
  • The settings for BaseStyle and LabelStyle are appended to the default styles typically given by the "Animate" and "AnimateLabel" styles in the current stylesheet.
Animate by continuously changing the value of a:
In[1]:=
Click for copyable input
Out[1]=
 
Animate by varying n in discrete steps:
In[1]:=
Click for copyable input
Out[1]=
 
Animate by continuously changing two parameters a and b:
In[1]:=
Click for copyable input
Out[1]=
New in 6