Skip to content

solutioninnovators/SI-Modal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SI Modal - Simple, responsive jQuery modal windows

Developed by Mike Spooner (thetuningspoon) for Solution Innovators

SI Modal enables opening any page or submitting any form to a responsive modal window.

Usage

  1. Load si-modal.js and si-modal.css in the head section of your page (after jQuery)
  2. Add the "modal" class to any <a> link or <form> element
  3. Initialize the function somewhere in your javascript:
$(function() {
      new SiModal({
          triggerClass: 'modal', // Class on the <a> or <form> element that should trigger the modal window to open
          speed: 200, // Speed of animation
      });
});

You may initialize the module more than once using a different triggerClass if you want to use different options for different modals.

Please see the comments in si-modal.js for options

About

Simple, responsive jQuery modal windows

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published