modal-layer

1.1.1 • Public • Published

modal-layer


Install

npm install modal-layer --save

Usage for webpack

import ModalLayer from 'modal-layer';
require('modal-layer/dist/style.css');
 
const modal = new ModalLayer(selector [,options]);

selector


options


  • effect ( value: 'fade' | 'scale' | 'slide' )
  • maskcolor ( type: color )
  • delay ( type: number )
  • openStartFun ( type: function )
  • openEndFun ( type: function )
  • closeStartFun ( type: function )
  • closeEndFun ( type: function )

methods


  • open()
  • close()
  • toggle()

Readme

Keywords

none

Package Sidebar

Install

npm i modal-layer

Weekly Downloads

1

Version

1.1.1

License

ISC

Last publish

Collaborators

  • cedcn