Skip to content

Modal with zero dependencies written in JS. With help from scotch.io

Notifications You must be signed in to change notification settings

despreston/vanillaJS-modal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vanillaJS-modal

Modal with zero dependencies written in JS. With help from scotch.io

A modal that can initialized anywhere using 'new Modal()'

e.g.) var myModal = new Modal();

Optional arguments:

className (string): the name(s) of any CSS classes to add to the modal closeButton (bool): default is true content (string/dom element): specify the content maxWidth (int): default 600px minWidth (int): default 280px overlay (bool): default is true

Example with all params) var myModal = new Modal({ className: 'my-css-class', closeButton: true, content: '

Testing this modal!

', maxWidth: 600, minWidth: 280, overlay: true });

About

Modal with zero dependencies written in JS. With help from scotch.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published