#cs-modal
A simple modal library. Project maintainers: Derek Blank & Winston Hearn
- Include
cs-modal.coffee
andcs-modal.scss
in your project. - Construct and initialize a modal instance.
- Trigger the jQuery event 'open' on the element to show the modal.
modal = new Modal
$ ->
modal.init()
$('#modal').trigger 'open'
- cssTransition: true
- closeButton: '#close-modal'
- classes: 'modal'
- keyboard: true
- opacity: '0.7'
- open
- close
- modalClosed