Show:

Defines an inertial transition, which decreases

Constructor

Transitions.Inertia

(
  • value
  • velocity
)
private

Parameters:

  • value Number

    Initial value

  • velocity Number

    Initial velocity

Item Index

Methods

get

() Number

Get current value.

Returns:

getVelocity

() Number

Get current velocity

Returns:

halt

()

Halt transition at current state and erase all pending actions.

reset

(
  • value
  • [velocity]
)

Reset the value and velocity of the transition.

Parameters:

set

(
  • value
  • [transition]
)

Set new value to transition to, with a transition definition.

Parameters:

  • value Number

    Starting value

  • [transition] Object optional

    Transition definition

update

()

Update the transition in time.