[Table of Contents] [docx version]

PresentationML Reference Material - Table of Contents

animMotion (Animate Motion)

Animate motion provides an abstracted way to move positioned elements. It provides the ability to specify from/to/by type motion as well as to use more detailed path descriptions for motion over polylines or bezier curves.

[Example: Consider animating a shape from its original position to the right.. The <animMotion> element should be used as follows:

<p:animMotion origin="layout" path="M 0 0 L 0.25 0 E" pathEditMode="relative">

<p:cBhvr>

<p:cTn id="1" dur="2000" fill="hold"/>

<p:tgtEl>

<p:spTgt spid="1"/>

</p:tgtEl>

<p:attrNameLst>

<p:attrName>ppt_x</p:attrName>

<p:attrName>ppt_y</p:attrName>

</p:attrNameLst>

</p:cBhvr>

</p:animMotion>

End example]

Parent Elements

childTnLst4.6.25); subTnLst4.6.78); tnLst4.6.87)

 

Child Elements

Subclause

by (By)

§4.6.20

cBhvr (Common Behavior)

§4.6.22

from (From)

§4.6.43

rCtr (Rotation Center)

§4.6.62

to (To)

§4.6.88

 

Attributes

Description

origin (Origin)

Specifies what the origin of the motion path is relative to such as the layout of the slide, or the parent.

 

The possible values for this attribute are defined by the ST_TLAnimateMotionBehaviorOrigin simple type (§4.8.29).

path (Path)

Specifies the path primitive followed by coordinates for the animation motion. The allowed values that are understood within a path are as follows:

 

M = move to, L = line to, C = curve to, Z=close loop, E=end

UPPERCASE = absolute coords, lowercase = relative coords

Thus total allowed set = {M,L,C,Z,E,m,l,c,z,e)

 

[Example: The following string is a sample path.

path: “M 0 0 L 1 1 c 1 2 3 4 4 4 Z”

end example]

 

The possible values for this attribute are defined by the XML Schema string datatype.

pathEditMode (Path Edit Mode)

This attribute specifies how the motion path moves when the target element is moved.

 

The possible values for this attribute are defined by the ST_TLAnimateMotionPathEditMode simple type (§4.8.30).

ptsTypes (Points Types)

This attribute describes the type of the points in the path attribute. The allowed values that are understood for the ptsTypes attribute are as follows:

 

A = Auto, F = Corner, T = Straight, S = Smooth

UPPERCASE = Straight Line follows point, lowercase = curve follows point.

Thus, the total allowed set = {A,F,T,S,a,f,t,s}

 

The possible values for this attribute are defined by the XML Schema string datatype.

rAng (Relative Angle)

The attribute describes the relative angle of the motion path.

 

The possible values for this attribute are defined by the ST_Angle simple type (§5.1.12.3).

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_TLAnimateMotionBehavior">

   <sequence>

   <element name="cBhvr" type="CT_TLCommonBehaviorData" minOccurs="1" maxOccurs="1"/>

   <element name="by" type="CT_TLPoint" minOccurs="0" maxOccurs="1"/>

   <element name="from" type="CT_TLPoint" minOccurs="0" maxOccurs="1"/>

   <element name="to" type="CT_TLPoint" minOccurs="0" maxOccurs="1"/>

   <element name="rCtr" type="CT_TLPoint" minOccurs="0" maxOccurs="1"/>

   </sequence>

   <attribute name="origin" type="ST_TLAnimateMotionBehaviorOrigin" use="optional"/>

   <attribute name="path" type="xsd:string" use="optional"/>

   <attribute name="pathEditMode" type="ST_TLAnimateMotionPathEditMode" use="optional"/>

   <attribute name="rAng" type="a:ST_Angle" use="optional"/>

   <attribute name="ptsTypes" type="xsd:string" use="optional"/>

</complexType>