Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 1.38 KB

lineareasingfunction.md

File metadata and controls

38 lines (24 loc) · 1.38 KB
-api-id -api-type
T:Windows.UI.Composition.LinearEasingFunction
winrt class

Windows.UI.Composition.LinearEasingFunction

-description

Represents a linear function for interpolating between animation key frames.

-remarks

The linear function of another supported easing function that can be used with KeyFrame Animations. When used, the animating property will change in between two KeyFrames linearly over time.

To create a new instance of LinearEasingFunction, call CompositionEasingFunction.CreateLinearEasingFunction.md or Compositor.CreateLinearEasingFunction.

-examples

// Construct the linear function
LinearEasingFunction linear = _compositor.CreateLinearEasingFunction();
ScalarKeyFrameAnimation animation = _compositor.CreateScalarKeyFrameAnimation();

// Apply the cubic-bezier to a KeyFrame
animation.InsertKeyFrame(0.0f, 1.0f);
animation.InsertKeyFrame(1.0f, 0.0f, linear);

-see-also

Composition Animations Overview, CompositionEasingFunction, IClosable