Skip to content

Instantly share code, notes, and snippets.

@GaryUnbounce
Created February 18, 2014 22:29
Show Gist options
  • Save GaryUnbounce/9081794 to your computer and use it in GitHub Desktop.
Save GaryUnbounce/9081794 to your computer and use it in GitHub Desktop.
Add a lightbox style window for image previews
<script type="text/javascript">
jQuery(function() {
jQuery(".lp-pom-image a[target='_self']").fancybox({
'transitionIn' : 'elastic',
'transitionOut' : 'fade',
'overlayOpacity' : 0.8,
'overlayColor' : '#000',
'hideOnContentClick' : true
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment