Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A simple modal library.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
cs-modal.coffee
cs-modal.scss

README.md

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
Something went wrong with that request. Please try again.