Skip to content

Instantly share code, notes, and snippets.

@gcyrillus
Forked from anonymous/dabblet.css
Created April 12, 2013 12:43
Show Gist options
  • Select an option

  • Save gcyrillus/5371749 to your computer and use it in GitHub Desktop.

Select an option

Save gcyrillus/5371749 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.25em;}
p img {float:left;;vertical-align:bottom;transform:scale(1);zoom:1;transition:0.5s;}
p img:hover {transform:scale(1.5);transform-origin:center;transition:0.5s;}
/* dabblet defaut CSS */
html {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
}
<!--[if lte IE 8]><style>p img:hover {zoom:1.5;margin:-20px 19px 20px -13px;position:relative;}</style><![endif]-->
<!--[if lte IE 7]><style>p img:hover { margin:-30px -10px -10px -30px;} </style><![endif]-->
<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":"html"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment