There are several other easing functions besides PowerEase. For example, if you wanted to use a PowerEase function to create the same behavior as a QuadraticEase function ( f( t) = t 2), you would specify a Power property value of 2. The following graph demonstrates the different values of EasingMode, where f( t) represents the animation progress and t represents time.īy using the PowerEase function, you can specify how quickly acceleration/deceleration takes place by specifying the Power property:į( t) = t p where p is equal to the Power property.īecause of this, the PowerEase function can be substituted for QuadraticEase ( f( t) = t 2), CubicEase ( f( t) = t 3), QuarticEase ( f( t) = t 4), and QuinticEase ( f( t) = t 5). You can control whether the animation accelerates, decelerates, or both by specifying the EasingMode. ![]() Because the Power value is so high, the deceleration is sudden compared to if you used a lower value. The following example applies a PowerEase easing function with a Power property value of 20 to a DoubleAnimation to create a decelerating animation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |