Skip to content

Instantly share code, notes, and snippets.

@raul782
Created July 20, 2012 18:19
Show Gist options
  • Save raul782/3152383 to your computer and use it in GitHub Desktop.
Save raul782/3152383 to your computer and use it in GitHub Desktop.
Snippet fancybox js usage
jQuery(document).ready(function() {
$("#id").click(function() {
$.fancybox({
'padding' : 0,
'href' : 'http://www.domain.com/flash.swf',
'title' : '',
'transitionIn' : 'elastic',
'transitionOut' : 'elastic'
});
});
$(".classname").fancybox({
'transitionIn' : 'none',
'transitionOut' : 'none',
'padding' : 0,
'overlayOpacity': 0.6,
'scrolling' : 'no',
'width' :560,
'height' : 350
});
$.fancybox({
'padding' : 0,
'href' : 'http://www.domain.com/flash-default.swf',
'width' : 483,
'height' : 427,
'autoScale' : false,
'title' : 'title',
'transitionIn' : 'elastic',
'transitionOut' : 'elastic'
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment