matthieua / WOW

Reveal CSS animation as you scroll down a page
https://www.delac.io/WOW/
9.92k stars 4.11k forks source link

slider animation #235

Open badpenguin opened 8 years ago

badpenguin commented 8 years ago

Is there a way to trigger animation of text for slider instead of scrolling? i.e. tha parent "li" get the "active" class on it.

I tried to initialize boxclass as '.active .wow' but in the console i get a syntax error

CydGoblin commented 8 years ago

Without wow.js you can try something like this

/*css*/
.slider .active .text { /*animation name*/}
<!--slider markup-->
<ul class="slider">
  <li>
    <span class="text">hello</span>
  </li>
 <li class="active">
    <span class="text">goodbye</span>
  </li>
</ul>