Developed by Mike Spooner (thetuningspoon) for Solution Innovators
SI Modal enables opening any page or submitting any form to a responsive modal window.
- Load si-modal.js and si-modal.css in the head section of your page (after jQuery)
- Add the "modal" class to any
<a>link or<form>element - 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