Skip to content

Wiggle API / Motion

Interface: Motion

Methods

fade()

fade(opts?): Transition

Fade only.

Parameters

opts?
duration?

Duration

Returns

Transition


pop()

pop(opts?): Transition

Scale up from from (default 0.6) with a fade. ease is a spring (the default) or a named curve; with a curve, duration sets the length.

Parameters

opts?
duration?

Duration

ease?

Easing

from?

number

Returns

Transition


rise()

rise(opts?): Transition

Fade in while sliding up by by pixels (default 22).

Parameters

opts?
by?

number

duration?

Duration

ease?

Easing

Returns

Transition


slide()

slide(opts?): Transition

Slide in from a direction with a fade. An optional scale runs alongside for a punch-in. ease is a spring (the default) or a named curve.

Parameters

opts?
by?

number

duration?

Duration

ease?

Easing

from?

"left" | "right" | "top" | "bottom"

scale?

number

Returns

Transition