Created
April 12, 2013 12:33
-
-
Save anonymous/5371693 to your computer and use it in GitHub Desktop.
zoom:hover
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // alert('Hello world!'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"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