Get started with zurb-ink CDN
MIT licensed
Zurb Ink is a lightweight library for creating smooth CSS transitions and animations with simple syntax.
Tags:- ink
- css
- html
- zurb
Stable version
Copied!
How to start using zurb-ink CDN
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdn.cdnhub.io/zurb-ink/2.4.0/ink.min.css">
<title>Get started with zurb-ink CDN - cdnhub.io</title>
</head>
<body>
<button id="show-modal-btn">Show Modal</button>
<div id="my-modal" tabindex="-1" role="dialog" class="modal">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Modal title</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>Modal body text goes here.</p>
</div>
</div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
const showModalBtn = document.getElementById('show-modal-btn');
const myModal = document.getElementById('my-modal');
showModalBtn.addEventListener('click', function() {
myModal.showModal();
});
myModal.addEventListener('click', function(event) {
if (event.target === myModal) {
myModal.close();
}
});
});
</script>
</body>
</html>