Skip to content

Instantly share code, notes, and snippets.

@logan4dog
Forked from pamelafox/magnifico.html
Created June 29, 2016 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save logan4dog/ec1c4bf7c0e3dcc7a4039069c7c248a8 to your computer and use it in GitHub Desktop.
Save logan4dog/ec1c4bf7c0e3dcc7a4039069c7c248a8 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