Skip to content

Instantly share code, notes, and snippets.

@dziudek
Created October 12, 2013 08:39
Show Gist options
  • Save dziudek/6947507 to your computer and use it in GitHub Desktop.
Save dziudek/6947507 to your computer and use it in GitHub Desktop.
Combination of few transitions
/**
* Combination of few transitions
*/
img {
height: 240px;
opacity: 1;
width: 320px;
transition:
.5s height,
.5s .5s width,
.5s .25s opacity;
}
img:hover {
height: 320px;
opacity: 0.5;
width: 480px;
}
<!-- content to be placed inside <body>…</body> -->
<img src="http://placekitten.com/320/240" alt="Sweet kittens!" />
// alert('Hello world!');
{"view":"split-vertical","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