I'm trying to build a menu that has a series of animations per list item. It works but after the animation the item disappears agains. It seams like the visible property of .animated is not used. Any directions you can give me to fix this problem?
<ul class="menu-ani-item">
<li class="animated">Hello World</li>
<li class="animated">Hello World</li>
<li class="animated">Hello World</li>
<li class="animated">Hello World</li>
<li class="animated">Hello World</li>
<li class="animated">Hello World</li>
<li class="animated">Hello World</li>
<li class="animated">Hello World</li>
<li class="animated">Hello World</li>
<li class="animated">Hello World</li>
<li class="animated">Hello World</li>
<li class="animated">Hello World</li>
</ul>
.menu-ani-item {
li {
animation: slideInDown 2s;
visibility: hidden;
&:nth-child(1) {
animation-delay: 0s;
}
&:nth-child(2) {
animation-delay: 2s;
}
&:nth-child(3) {
animation-delay: 3s;
}
&:nth-child(4) {
animation-delay: 4s;
}
&:nth-child(5) {
animation-delay: 5s;
}
&:nth-child(6) {
animation-delay: 6s;
}
&:nth-child(7) {
animation-delay: 7s;
}
&:nth-child(8) {
animation-delay: 8s;
}
&:nth-child(9) {
animation-delay: 9s;
}
&:nth-child(10) {
animation-delay: 10s;
}
&:nth-child(11) {
animation-delay: 11s;
}
&:nth-child(12) {
animation-delay: 12s;
}
}
}