-api-id | -api-type |
---|---|
T:Microsoft.UI.Xaml.Media.Animation.SineEase |
winrt class |
Represents an easing function that creates an animation that accelerates and/or decelerates using a sine formula.
<SineEase .../>
SineEase is an easing function that has a function-over-time formula that resembles a sine curve when represented as a function-time graph. When EasingMode is EaseIn (the default), this easing function starts slow and accelerates gradually as it reaches the end. It reaches about 30% value halfway through the duration.
The formula used for this function is:
An easing function can be applied to the EasingFunction properties of From/To/By animations, or to the EasingFunction properties of key-frame types used for the Easing variants of key-frame animations. For more info, see Key-frame animations and easing function animations.
This XAML example applies a SineEase easing function to a DoubleAnimation to create a decelerating animation.
[!code-xamlSineEase]
[!code-csharpSineEase_code]
Key-frame animations and easing function animations, Storyboarded animations, PowerEase, BackEase, BounceEase, CircleEase, CubicEase, ElasticEase, ExponentialEase, QuadraticEase, QuarticEase, QuinticEase, QuarticEase, QuinticEase