CALCMODE Attribute | calcMode Property (t:ANIMATEMOTION)

HTML (DHTML)

CALCMODE Attribute | calcMode Property

Internet Development Index

Sets or retrieves the interpolation mode for the animateMotion object.

Syntax

HTML<t:ANIMATEMOTION CALCMODE = sMode... >
Scriptingt:ANIMATEMOTION.calcMode(calcmode) [ = sMode ]

Possible Values

sModeString that specifies or receives one of the following values:
discreteThe animation jumps from one value to the next, without any interpolation.
linearThe animation uses simple linear interpolation between values to calculate the animation function.
pacedDefault. The animation defines an even pace of change across the animation. This is only supported for attribute values that define a linear numeric range, and for which a notion of distance between points can be calculated, such as width or height.
splineThe animation interpolates from one value to the next according to a time function defined by a cubic Bezier spline. The points of the spline are defined in the keyTimes property and the control points for each interval are defined in the keySplines property.

The property is read/write. The property has a default value of paced.

Remarks

The default value for the t:ANIMATEMOTION element is paced.

Applies To

t:ANIMATEMOTION

See Also

Introduction to HTML+TIME