0.0.1 • Published 8 years ago
component-mask v0.0.1
Mask
Mask the entire viewport or element with auto adjustment.
default z-index
is 30, change the z-index
if you want some covered element to be shown.
Installation
Install with component(1):
$ component install chemzqm/mask
API
var Mask = require('mask');
var mask = new Mask();
mask.show();
mask.hide();
new Make(el)
Default to document.body (cover the entire viewport if body is not scrollable).
Make sure element is positioned relative
or absolute
or fixed
.spin(size | 60)
Enable a spin in the middle of mask.
.show()
Show overlay.
.hide()
Hide overlay.
License
MIT
0.0.1
8 years ago