Creates an `animation` object for usage in runAnimation.

animation(effect, delay = 0, duration = 1000)

Arguments

effect

Animation effect used name to be applied. Check .cssEffects object for possible options.

delay

Delay of animation start (in milliseconds).

duration

Duration of animation (in milliseconds).

Value

A named list with class `animation`.