SmoothEnd Property
SmoothEnd Property
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
MsoTriState
MsoTriState can be one of these MsoTriState constants. |
msoCTrue Doesn't apply to this property. |
msoFalse Default. An animation does not decelerate when it ends. |
msoTriStateMixed Doesn't apply to this property. |
msoTriStateToggle Doesn't apply to this property. |
msoTrue An animation decelerates when it ends. |
expression.SmoothEnd
expression Required. An expression that returns one of the objects in the Applies To list.
Example
The following example adds a shape to a slide, animates the shape, and instructs the shape to decelerate when it ends.
Sub AddShapeSetTiming()
Dim effDiamond As Effect
Dim shpRectangle As Shape
'Adds shape and sets animation effect
Set shpRectangle = ActivePresentation.Slides(1).Shapes _
.AddShape(Type:=msoShapeRectangle, Left:=100, _
Top:=100, Width:=50, Height:=50)
Set effDiamond = ActivePresentation.Slides(1).TimeLine.MainSequence _
.AddEffect(Shape:=shpRectangle, effectId:=msoAnimEffectPathDiamond)
'Sets duration of effect and slows animation at end
With effDiamond.Timing
.Duration = 5
.SmoothEnd = msoTrue
End With
End Sub