Skip to content

centresource/cs-modal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

#cs-modal

A simple modal library. Project maintainers: Derek Blank & Winston Hearn

Basic Usage

  1. Include cs-modal.coffee and cs-modal.scss in your project.
  2. Construct and initialize a modal instance.
  3. Trigger the jQuery event 'open' on the element to show the modal.

Example

modal = new Modal

$ ->
  modal.init()
  $('#modal').trigger 'open'

Configuration

  • cssTransition: true
  • closeButton: '#close-modal'
  • classes: 'modal'
  • keyboard: true
  • opacity: '0.7'

Events

  • open
  • close
  • modalClosed

Releases

No releases published

Packages

No packages published