Skip to content

Instantly share code, notes, and snippets.

@shynome
Created March 15, 2017 05:29
Show Gist options
  • Save shynome/82c6b3e71c85919d242761836f981937 to your computer and use it in GitHub Desktop.
Save shynome/82c6b3e71c85919d242761836f981937 to your computer and use it in GitHub Desktop.
<!-- 1. Add latest jQuery and fancyBox files -->
<script src="//code.jquery.com/jquery-3.1.1.min.js"></script>
<link href="/path/to/jquery.fancybox.min.css" rel="stylesheet">
<script src="/path/to/jquery.fancybox.min.js"></script>
<!-- 2. Create links -->
<a data-fancybox="gallery" href="big_1.jpg"><img src="small_1.jpg"></a>
<a data-fancybox="gallery" href="big_2.jpg"><img src="small_2.jpg"></a>
<!-- 3. Have fun! -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment