Created
September 17, 2013 02:17
-
-
Save mamod/6589324 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//set global options | |
$(document).modal({ | |
easing : 'easeInOutBounce', | |
speed : 600, | |
animation : 'top', | |
position 'center', | |
overlayClose : true, | |
on : 'click' | |
}); | |
//per modal options, will use global options we set above | |
$('.clickMe').modal({ | |
target : '#modal1' | |
}); | |
//override global options for this modal | |
$('.mouseover').modal({ | |
target : '#modal2', | |
animation : 'zoom', | |
position : '10px auto', //top 10px left auto | |
easing : 'easeOutElastic', | |
on : 'mouseenter', | |
overlayClose : false, | |
overlayColor : 'red', | |
overlayOpacity : 0.5 | |
close : '.closeMe' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment