Skip to content

Instantly share code, notes, and snippets.

@pamelafox
Created July 18, 2015 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save pamelafox/bb7d239f7b46dc49c22f to your computer and use it in GitHub Desktop.
Save pamelafox/bb7d239f7b46dc49c22f to your computer and use it in GitHub Desktop.
magnifico example
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>New Webpage</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.0.0/magnific-popup.css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="
https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.0.0/jquery.magnific-popup.js"></script>
<a class="image-link" href="https://www.kasandbox.org/programming-images/animals/butterfly.png">Open popup!</a>
<script>
$(document).ready(function() {
$('.image-link').magnificPopup({type:'image'});
});
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment