Module: effects

Methods

(static) exports.glower()

Transition styles on element for a moment and revert as if to say, "Whoa!."

(static) exports.shaker()

Shake element back and fourth a few times as if to say, "Nope!"

Type Definitions

effectFunction(optionsopt)

Element to perform transitions upon is options.el if defined or this.el.

Parameters:
Name Type Attributes Description
options object <optional>
Properties
Name Type Attributes Default Description
el HTMLElement <optional>
this.el
callback function <optional>

Function to call at conclusion of transitions.

duration string <optional>
'0.065s'

Duration of each transition.

styles object <optional>
defaultGlowerStyles

Hash of CSS styles and values to transition. (For glower only.