Skip to content

Instantly share code, notes, and snippets.

@soundstep
Created March 1, 2013 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soundstep/5066519 to your computer and use it in GitHub Desktop.
Save soundstep/5066519 to your computer and use it in GitHub Desktop.
Untitled
div {
background-color: #ccc;
margin: 20px;
width: 50px;
height: 50px;
-webkit-animation-duration: 1s;
-webkit-animation-timing-function: ease-out;
}
#with-opacity {
-webkit-animation-name: popInWithOpacity;
}
#without-opacity {
-webkit-animation-name: popInWithoutOpacity;
}
@-webkit-keyframes popInWithOpacity {
from {
-webkit-transform: scale(0);
opacity: 0;
}
to {
-webkit-transform: scale(1);
opacity: 1;
}
}
@-webkit-keyframes popInWithoutOpacity {
from {
-webkit-transform: scale(0);
}
to {
-webkit-transform: scale(1);
}
}
<div id=with-opacity></div>
<div id=without-opacity></div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment