Interface Tween<TElement>

see

``

since

1.8

Type parameters

  • TElement

Hierarchy

  • Tween

Index

Properties

Methods

Properties

easing

easing: string

The easing used

see

``

since

1.8

elem

elem: TElement

The element being animated

see

``

since

1.8

end

end: number

The ending value of the tween

see

``

since

1.8

now

now: number

The current value of the tween

see

``

since

1.8

options

options: EffectsOptions<TElement>

A reference to the animation options

see

``

since

1.8

Optional pos

pos: number

prop

prop: string

The property being animated

see

``

since

1.8

start

start: number

The starting value of the tween

see

``

since

1.8

unit

unit: string

The CSS unit for the tween

see

``

since

1.8

Methods

cur

  • cur(): any
  • Reads the current value for property from the element

    see

    ``

    since

    1.8

    Returns any

run

  • run(progress: number): this
  • Updates the value for the property on the animated elemd.

    see

    ``

    since

    1.8

    Parameters

    • progress: number

      A number from 0 to 1.

    Returns this