Transitions

class Transitions<V>(interpolate: (property: String, a: V, b: V, t: Double) -> V)(source)

The transitions of the properties of one element, of values of type V that interpolate interpolates: a change of a property with a TransitionTiming transitions from the value that is shown, also when another transition of the property runs, to the new value. Transitions of CSS.

Parameters

interpolate

the value of property between a and b at t, from 0 to 1

Constructors

Link copied to clipboard
constructor(interpolate: (property: String, a: V, b: V, t: Double) -> V)

Properties

Link copied to clipboard

called when a transition that did not end is replaced

Link copied to clipboard
var ended: (Transition<V>) -> Unit

called when a transition ends

Link copied to clipboard

true when transitions run

Link copied to clipboard

called when a transition starts, after its delay

Link copied to clipboard

the transitions that run

Functions

Link copied to clipboard
fun change(property: String, from: V, to: V, time: Double, timing: TransitionTiming?)

property changes from from to to at time: a transition with timing starts from the value that is shown, from when no transition runs. A transition that runs is canceled, also when timing is null.

Link copied to clipboard
fun remove(property: String)

removes the transition of property, without events

Link copied to clipboard
fun shown(property: String, time: Double): V?

the value of property that is shown at time, without starting or ending transitions; null when none runs

Link copied to clipboard
fun value(property: String, time: Double): V?

The value of property at time, of the transition that runs; null when none runs. Starts and ends the transition, which is removed when it ended.