Please login to access all of the features of the Community Site.

FlipAnimation

Mobile1.0

Animates the Opacity and RotationY of the target to make it appear. As it fades in, it also rotates on its y-axis, growing from a single vertical line to full width, as if a card were being turned 90 degrees.

Note

For an easy way to flip between two sections of content, use the Flip View.

Note

This animation ignores the Easing property.

Properties

PropertyTypeDescription
DirectionstringThe direction the element rotates: Left or Right. Defaults to Right.
TargetVisualElementThe element to animate.
DurationstringThe length of the animation in milliseconds. Defaults to 1000.
EasingEasingTypeThe easing curve to use: BounceIn, BounceOut, CubicIn, CubicInOut, CubicOut, Linear, SinIn, SinInOut, SinOut, SpringIn or SpringOut. Defaults to Linear.
DelayintHow long to wait before the animation begins, in milliseconds. Defaults to 0.
RepeatForeverboolRepeats the animation until it’s stopped. Defaults to false.

Example

Define the animation in the Resources of a parent element, then start it with a trigger or behavior. See Animations for the full setup.

<Rock:FlipAnimation x:Key="Demo"
    Target="{x:Reference myLabel}"
    Duration="2000"
    Direction="Left" />