Skip to content

Instantly share code, notes, and snippets.

@Nordis
Created July 7, 2014 12:37
Show Gist options
  • Save Nordis/630379484a6b1ce6d630 to your computer and use it in GitHub Desktop.
Save Nordis/630379484a6b1ce6d630 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
*/
#transtest {
width: 50px;
height: 50px;
background: linear-gradient(45deg, #f06, yellow);
transition: all 1s ease-in-out;
transition-property: width, margin-left;
transition-duration: 2s;
}
#transtest:hover {
transition: all 1s ease-in-out;
transition-property: width, margin-left;
transition-duration: 2s;
width: 300px;
margin-left: 300px;
}
<!-- content to be placed inside <body>…</body> -->
<div id="transtest"></div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment