Skip to content

Instantly share code, notes, and snippets.

@machal
Created January 27, 2012 11:04
Show Gist options
  • Select an option

  • Save machal/1688311 to your computer and use it in GitHub Desktop.

Select an option

Save machal/1688311 to your computer and use it in GitHub Desktop.
Dabblet: CSS transitions demo
/**
* Dabblet: CSS transitions demo
*/
#example {
transition: background .5s, top .5s 1s;
position: absolute;
top: 20px;
padding: 20px;
background: #999;
width: 300px;
color: #fff;
}
#example:hover {
top: 200px;
background: #333;
}
#example p {
width: 300px
}
body {
font: 2em sans-serif;
}
<!-- content to be placed inside <body>…</body> -->
<div id="example">
<p>Demo box</p>
</div>
{"view":"split","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment