Skip to content

Instantly share code, notes, and snippets.

@mamod
Created September 17, 2013 02:17
Show Gist options
  • Save mamod/6589324 to your computer and use it in GitHub Desktop.
Save mamod/6589324 to your computer and use it in GitHub Desktop.
//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