I was hoping someone would be able to help with this. I can't seem to get the animations for the modal reveal in Foundation 6 working. I've basically copied and pasted it straight from their documentation but nothing. I see others have had issues but none of their solutions seemed to help me.
Here's my complete code.
<!doctype html>
<html class="no-js" lang="en">
<head>
<link rel="stylesheet" href="css/themeat.min.css" />
<link rel="stylesheet" href="css/styles.css" />
<link rel="stylesheet" href="css/app.css">
</head>
<body>
<p><a data-toggle="animatedModal10">Click me for a modal</a></p>
<div class="reveal" id="animatedModal10" data-reveal data-close-on-click="true" data-animation-in="spin-in" data-animation-out="spin-out">
<h1>Whoa, I'm dizzy!</h1>
<p class='lead'>There are many options for animating modals, check out the Motion UI library to see them all</p>
<button class="close-button" data-close aria-label="Close reveal" type="button">
<span aria-hidden="true">×</span>
</button>
</div>
<script src="js/vendor/jquery.min.js"></script>
<script src="js/vendor/what-input.min.js"></script>
<script src="js/foundation.min.js"></script>
<script src="js/app.js"></script>
<script src="js/view.js?auto"></script>
<script>
$(document).ready(function() {
$(document).foundation();
})
</script>
</script>
</body>
</html>
Any help would be greatly appreciated. :)
Thanks,
I think you haven't included the Motion-UI css file, You will need it to animate the modal.
https://cdnjs.cloudflare.com/ajax/libs/motion-ui/1.1.1/motion-ui.min.css
Please see the working example with code copied from the docs. http://codepen.io/shoaibik/pen/RRwWKg