Skip to content

amitayh/Mask.Fx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

Extends MooTools official Mask plugin to add fading functionality

Resources

Stars

Watchers

Forks

Packages

No packages published