transition

fun Tag<HTMLElement>.transition(transition: Transition)

Applies a transition (enter and/or leave) to a Tag. The enter-transition will be executed right after the Tag is mounted to the DOM. The leave-transition will be executed right before the Tag is removed from the DOM. Further operation of the MountPoint rendering the Tag is suspended until the leave-animation is done.

Parameters

<receiver>

the Tag the transition will be applied to

transition

definition of the enter- and leave-transition

fun Tag<HTMLElement>.transition(enter: String? = null, enterStart: String? = null, enterEnd: String? = null, leave: String? = null, leaveStart: String? = null, leaveEnd: String? = null)

Applies a transition (enter and/or leave) to a Tag. The enter-transition will be executed right after the Tag is mounted to the DOM. The leave-transition will be executed right before the Tag is removed from the DOM. Further operation of the MountPoint rendering the Tag is suspended until the leave-animation is done.

Parameters

<receiver>

the Tag the transition will be applied to

enter

mandatory classes to control the enter-transition.

enterStart

optional classes to define the starting point of the enter-transition

enterEnd

optional classes to define the end point of the enter-transition

leave

mandatory classes to control the leave-transition.

leaveStart

optional classes to define the starting point of the leave-transition

leaveEnd

optional classes to define the end point of the leave-transition