What are Objects?
Slidea can animate any of the HTML content inside of it. To tell slidea to animate a certain part of our slide, we need to mark it up as an Object. Any element inside a slide can be animated by adding the class slidea-object
to it.
After adding the class, you’re ready to animate!
Yes, it’s that simple! Once you’ve added the slidea-object
class, you can animate anything inside the slide which wasn’t animated before.
<!-- Slidea -->
<div class="slidea">
<!-- First Slide -->
<div class="slidea-slide">
<!-- Content -->
<div class="slidea-content slidea-content-top">
<div class="slidea-content-container text-white text-center">
<h2 class="slidea-object" data-slidea="tada, duration 2000">
Woohoo!
</h2>
<p class="slidea-object" data-slidea="y 200">
Animating using objects is simpler than ever!
</p>
</div>
</div>
<!-- Background -->
<!-- To change the background, modify the src=".." attribute -->
<img class="slidea-background" src="assets/img/slide-1.jpg">
</div>
</div>
You can read more about animations in the animation presets and keyframed custom animations guides.
Previous
HTML ContentRead Next
Videos