public
Created

CSS: Text transition for responsive design

  • Download Gist
gistfile1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
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;
}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.