toComponentView

fun <T : ComponentView> toComponentView(    componentView: T,     toComponentViewPosition: T,     scene: Scene<*>,     duration: Int = 1000): MovementAnimation<T>

Creates a MovementAnimation to another component's position. Moves given ComponentView relative to parents anchor point.

Parameters

T

Generic ComponentView.

componentView

ComponentView to animate

toComponentViewPosition

Defines the destination ComponentView to move the given component to.

scene

The Scene.

duration

Animation duration in milliseconds. Default: 1 second