Irfan Mir
Irfan Mir

Reputation: 2175

CSS Animation not playing

I am trying to add a slide up from the bottom CSS3 Animation to the <main> element in this site, but the animation is not playing / taking place.

Any idea why?

Here is the link to the page where it is not happening: https://dl.dropboxusercontent.com/u/270523/help/animate/new.html

And here is the CSS for the animation:

.animated{
    -webkit-animation-fill-mode:both;
    -moz-animation-fill-mode:both;
    -ms-animation-fill-mode:both;
    -o-animation-fill-mode:both;
    animation-fill-mode:both;
    -webkit-animation-duration:1s;
   -moz-animation-duration:1s;
   -ms-animation-duration:1s;
    -o-animation-duration:1s;
    animation-duration:1s;
 }
 @-webkit-keyframes bounceInUp {
0% {
    opacity: 0;
    -webkit-transform: translateY(2000px);
}
    60% {
    opacity: 1;
    -webkit-transform: translateY(-30px);
}
80% {
    -webkit-transform: translateY(10px);
}
100% {
    -webkit-transform: translateY(0);
    }
}
@-moz-keyframes bounceInUp {
0% {
    opacity: 0;
    -moz-transform: translateY(2000px);
}

60% {
    opacity: 1;
    -moz-transform: translateY(-30px);
}

80% {
    -moz-transform: translateY(10px);
}

100% {
    -moz-transform: translateY(0);
    }
}

@-o-keyframes bounceInUp {
0% {
    opacity: 0;
    -o-transform: translateY(2000px);
}

60% {
    opacity: 1;
    -o-transform: translateY(-30px);
}

80% {
    -o-transform: translateY(10px);
}

100% {
    -o-transform: translateY(0);
    }
}

@keyframes bounceInUp {
0% {
    opacity: 0;
    transform: translateY(2000px);
}

60% {
    opacity: 1;
    transform: translateY(-30px);
}

80% {
    transform: translateY(10px);
}

100% {
    transform: translateY(0);
    }
}

.bounceInUp {
-webkit-animation-name: bounceInUp;
-moz-animation-name: bounceInUp;
-o-animation-name: bounceInUp;
animation-name: bounceInUp;
}

Upvotes: 1

Views: 1645

Answers (1)

5argon
5argon

Reputation: 3863

On your HTML code, you mistyped here:

<link rel="stylsheet" href="animate.css" type="text/css">

It's "stylesheet" !

Upvotes: 2

Related Questions