kvision / pl.treksoft.kvision.core / Widget / animate

animate

(js) open fun animate(duration: Int = 400, easing: Easing = Easing.SWING, complete: (() -> Unit)? = null, styles: StyledComponent.() -> Unit): Unit

Animate the widget changing CSS properties.

Parameters

duration - a duration of the animation

easing - an easing function to use

complete - a callback function called after the animation completes

styles - changing properties values