Fade Animation
class FadeAnimation<T : ComponentView>( componentView: T, fromOpacity: Number = componentView.opacity, toOpacity: Number = componentView.opacity, duration: Int = DEFAULT_ANIMATION_SPEED) : ComponentAnimation<T>
Content copied to clipboard
A fade Animation.
Fades given ComponentView's opacity i.e. alpha channel.
Parameters
T
Generic ComponentView.
component View
ComponentView to animate.
from Opacity
Initial opacity. Default: Current ComponentView.opacity.
to Opacity
Resulting opacity. Default: Current ComponentView.opacity.
duration
Duration in milliseconds. Default: DEFAULT_ANIMATION_SPEED.
Constructors
Link copied to clipboard
fun <T : ComponentView> FadeAnimation( componentView: T, fromOpacity: Number = componentView.opacity, toOpacity: Number = componentView.opacity, duration: Int = DEFAULT_ANIMATION_SPEED)
Content copied to clipboard
Creates a FadeAnimation for the given ComponentView.
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Gets invoked when Animation has finished.