Created
December 3, 2013 14:31
-
-
Save grayghostvisuals/7770083 to your computer and use it in GitHub Desktop.
Example of Fancybox API Setup
This file contains hidden or 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
// ---------------------------------------------------------------------- | |
// =Fancybox | |
// ---------------------------------------------------------------------- | |
$('.fancybox').fancybox({ | |
// Options | |
padding : 6, | |
openEffect : 'elastic', // elastic, fade | |
closeEffect : 'elastic', // elastic, fade | |
openSpeed : 325, // default 250 | |
closeSpeed : 325, // default 250 | |
// Call this function helper after close | |
afterClose : function() {}, | |
// Helpers | |
helpers: { | |
overlay : { | |
css : { | |
'background' : 'rgba(0,0,0,0.5)' | |
} | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment