Created
October 14, 2010 16:25
-
-
Save mjangda/626500 to your computer and use it in GitHub Desktop.
Add transitions TO EVERYTHING ON YOUR PAGE!
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
| * { | |
| -webkit-transition: 1s; | |
| -moz-transition: 1s; /* Firefox 4+ */ | |
| -ms-transition: 1s; /* IE doesn't actually support transitions, but we'll humour Microsoft */ | |
| -o-transition: 1s; /* Opera 10.5 */ | |
| transition: 1s; | |
| } |
Author
It transition-ifies everything on your page. Anytime you change a CSS property (that includes adding, removing, changing classes) for something on the page, it'll get animated to the new property/properties.
http://www.w3.org/TR/css3-transitions/
(It's probably a bad idea to do this... but super cool!)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What does it do sir?