animated-orbit
v1.0.2
Published
Add animate.css to Foundation Orbit Slider
Downloads
3
Readme
Animated Orbit
Add some nice animations to your Orbit Slider. You can trigger animate.css animations to any element of the slide.
Live Demo
- Click here to see some examples
Documentation
Dependencies
Installation
- Bower
bower install animated-orbit
- NPM
npm install animated-orbit
Basic Usage
- Add animated-orbit class to your orbit slider
- Add animated attribute to each element you want to animate
- Add aditional attributes animate-in, animate-out, animate-delay and animate-duration to costumize effect, transition, delay and duration
<link rel="stylesheet" type="text/css" href="css/foundation.css">
<link rel="stylesheet" type="text/css" href="css/animate.min.css">
<ul class="orbit-content animated-orbit" data-orbit>
<li data-orbit-slide="headline-1">
<div class="panel">
<h2 animated data-animate-in="fadeInLeft" data-animate-out="fadeOutLeft" data-delay="0.5s" data-duration="1s">Headline 1</h2>
<h3 animated data-animate-in="slideInLeft" data-animate-out="slideOutLeft" data-delay="1s">Subheadline</h3>
</div>
</li>
<li data-orbit-slide="headline-2">
<div class="panel">
<h2 animated data-animate-in="fadeInLeft" data-animate-out="fadeOutLeft" data-delay="0.5s">Headline 2</h2>
<h3 animated data-animate-in="slideInLeft" data-animate-out="slideOutLeft" data-delay="1s">Subheadline</h3>
</div>
</li>
<li data-orbit-slide="headline-3">
<div class="panel">
<h2 animated data-animate-in="fadeInLeft" data-animate-out="fadeOutLeft" data-delay="0.5s">Headline 3</h2>
<h3 animated data-animate-in="slideInLeft" data-animate-out="slideOutLeft" data-delay="1s">Subheadline</h3>
</div>
</li>
</ul>
<script src="js/vendor/jquery.js"></script>
<script src="js/foundation.min.js"></script>
<script src="js/animated-orbit.min.js"></script>
<script>$(document).foundation();</script>
Development
Want to contribute? Great!