Skip to content

Instantly share code, notes, and snippets.

@man-oi

man-oi/dabblet.css

Created Mar 26, 2013
Embed
What would you like to do?
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
You can’t perform that action at this time.