Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 880 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 880 Bytes

Mask.Fx

Extends MooTools official Mask plugin to add fading functionality

How to use

Syntax

#JS
new Mask.Fx(target[, options]);

Arguments

  1. target - (mixed) A string of the id for an Element or an Element reference to overlay; defaults to document.body
  2. options - (object) a key/value set of options

Options

  • (inherited from Mask)
  • fx - (object) options that will be passed to the Fx.Tween instance. Defaults to: {property: 'opacity', link: 'cancel'}
  • start - (mixed) the start position for the Fx. Defaults to 0
  • end - (mixed) the end position for the Fx. Defaults to 1

Events

  • (inherited from Mask)
  • showEnd - (function) callback to execute when the animation ends after the mask is shown.
  • hideEnd - (function) callback to execute when the animation ends after the mask is hidden.