Skip to content

Instantly share code, notes, and snippets.

@aokolish
Created October 22, 2012 06:27
Show Gist options
  • Save aokolish/3929973 to your computer and use it in GitHub Desktop.
Save aokolish/3929973 to your computer and use it in GitHub Desktop.
Foundation 3 Reveal Options
$('#myModal').reveal({
animation: 'fadeAndPop', // Possible options: fade, fadeAndPop, none
animationSpeed: 300, //Speed at which the reveal should show. How fast animtions are
closeOnBackgroundClick: true, //Should the modal close when the background is clicked?
dismissModalClass: 'close-reveal-modal', //Specify a class name for the 'close modal' element.
open: function(){}, //callback function that triggers 'before' the modal opens.
opened: function(){}, //callback function that triggers 'after' the modal is opened.
close: function(){}, //callback function that triggers 'before' the modal prepares to close.
closed: function(){} //callback function that triggers 'after' the modal is closed.
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment