to Component View
fun <T : ComponentView> toComponentView( componentView: T, toComponentViewPosition: T, scene: Scene<*>, duration: Int = 1000): MovementAnimation<T>
Content copied to clipboard
Creates a MovementAnimation to another component's position. Moves given ComponentView relative to parents anchor point.
Parameters
T
Generic ComponentView.
component View
ComponentView to animate
to Component View Position
Defines the destination ComponentView to move the given component to.
scene
The Scene.
duration
Animation duration in milliseconds. Default: 1 second