Created
December 20, 2013 14:14
-
-
Save felipefernandes/8055357 to your computer and use it in GitHub Desktop.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style type="text/css"> | |
.logo { | |
width:300px; | |
height:100px; | |
background:red; | |
transition: width 2s; | |
-webkit-transition: width 2s; /* Safari */ | |
} | |
@media all and (min-width: 720px) { | |
.logo { | |
width:250px; | |
} | |
} | |
@media all and (min-width: 520px) { | |
.logo { | |
width:150px; | |
} | |
} | |
</style> | |
</head> | |
<body> | |
<div class="logo"></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment