Skip to content

Instantly share code, notes, and snippets.

Created April 12, 2013 12:33
Show Gist options
  • Select an option

  • Save anonymous/5371693 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/5371693 to your computer and use it in GitHub Desktop.
zoom:hover
/* zoom:hover */
p {border:solid;width:500px;margin:3em auto;box-shadow:0 0 5px;font-size:1.25rem;}
p img {float:left;margin:1em;vertical-align:bottom;transform:scale(1);zoom:1;transition:0.5s;}
p img:hover {transform:scale(2);transform-origin:center;zoom:2;transition:0.5s;}
/* dabblet defaut CSS */
html {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
}
</style>
<!--[if lte IE9]>
<style>
p img:hover {margin:-20px -20px 0;}
</style>
<![endif]-->
<style>
<p><img src="http://lorempixel.com/80/80/people/" />Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
// 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