Created
November 27, 2012 13:10
-
-
Save thedaviddias/4154158 to your computer and use it in GitHub Desktop.
CSS: Text transition for responsive design
This file contains 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
body { | |
font-size:11em; | |
color:#000; | |
transition:all .5s ease-in-out; | |
-o-transition:all .5s ease-in-out; | |
-moz-transition:all .5s ease-in-out; | |
-webkit-transition:all .5s ease-in-out; | |
} | |
@media screen and (max-width:500px) { | |
body { | |
font-size:8em; | |
color:#ff0000; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment