Skip to content

Instantly share code, notes, and snippets.

@man-oi
Created March 4, 2013 20:42
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 man-oi/5085476 to your computer and use it in GitHub Desktop.
Save man-oi/5085476 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body {
background: #fff;
}
#wrapper {
width: 700px;
height: 30px;
margin: auto;
padding: 10px;
background: #000;
}
div#block {
margin: 5px 0 0 0;
}
div#block {
width: 20px;
height: 20px;
margin: 5px 0 0 10px;
background: #fff;
-webkit-transition-property: margin;
-webkit-transition-duration: 1s;
}
div#block:hover {
margin: 5px 0 0 200px;
-webkit-transition-duration: 5s;
}
div#qua {
width: 100px;
height: 100px;
margin: 100px 0 0 100px;
background: #538403;
transform:rotate(0deg);
-webkit-transition-property: transform;
-webkit-transition-duration: 5s;
}
div#qua .top {
height: 50px;
background: #000;
}
div#qua:hover {
transform:rotate(360deg);
-webkit-transition-property: transform;
-webkit-transition-duration: 5s;
}
ICH BIN HTML <!-- content to be placed inside <body>…</body> -->
<body>
<div id="wrapper">
<div id="block"></div>
</div>
<div id="qua">
<div class="top"></div>
<div class="bottom"></div>
</div>
</body>
// 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