Skip to content

Instantly share code, notes, and snippets.

@danilowm
Created January 3, 2012 14:30
Show Gist options
  • Save danilowm/1555095 to your computer and use it in GitHub Desktop.
Save danilowm/1555095 to your computer and use it in GitHub Desktop.
Animação CSS3/HTML5
#box {
text-align: center;
background: green;
padding: 40px;
width: 200px;
color: #fff;
margin: 0 auto;
border-radius: 5px;
font-weight: bold;
}
/* animação */
.animate {
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-animation-duration: 1s;
-webkit-animation-delay: .2s;
-webkit-animation-timing-function: ease;
-webkit-animation-fill-mode: both;
-moz-animation-duration: 1s;
-moz-animation-delay: .2s;
-moz-animation-timing-function: ease;
-moz-animation-fill-mode: both;
-ms-animation-duration: 1s;
-ms-animation-delay: .2s;
-ms-animation-timing-function: ease;
-ms-animation-fill-mode: both;
animation-duration: 1s;
animation-delay: .2s;
animation-timing-function: ease;
animation-fill-mode: both;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment