Interface: IKinetics

H.util.kinetics.IKinetics

This interface defines kinetic move parameters used by the map for kinetic drag.

Members

duration number

This property hold the value indicating the duration of the kinetic move.

power number

This property hods the value of the power multiplier. It is used to increase the speed of the kinetic move. By default the map uses 1.

Methods

ease (progress)number

This method defines an easing function that modifies the progress of an animation. For example, it can modify the animation in a way it starts rapidly and then slows down towards the end.

It is similar to CSS transition timing function.

Several predefined implementations of this function can be found at H.util.animation.ease namespace.

Name Type Description
progress number

A value from [0…1] range indicating the current progress

Returns:
Type Description
number A value indicating the modified progress