Share via


Timing.SmoothEnd Property

PowerPoint Developer Reference

Determines whether an animation should decelerate as it ends. Read/write.

Syntax

expression.SmoothEnd

expression   A variable that represents a Timing object.

Return Value
MsoTriState

Remarks

The value of the SmoothEnd property can be one of these MsoTriState constants.

Constant Description
msoFalse The default. An animation does not decelerate when it ends.
msoTrue An animation decelerates when it ends.

Example

The following example adds a shape to a slide, animates the shape, and instructs the shape to decelerate when it ends.

Visual Basic for Applications
  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
    .<strong>SmoothEnd</strong> = msoTrue
End With

End Sub

See Also