Created
June 6, 2012 22:33
-
-
Save claudiosanches/2885248 to your computer and use it in GitHub Desktop.
Input with CSS3 transition
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Input with CSS3 transition</title> | |
<style> | |
#search { | |
width: 150px; | |
-webkit-transition: all 0.4s ease; | |
-moz-transition: all 0.4s ease; | |
-o-transition: all 0.4s ease; | |
transition: all 0.4s ease; | |
} | |
#search:focus { | |
width: 350px; | |
} | |
</style> | |
</head> | |
<body> | |
<input id="search" type="text" value="" /> | |
</body> | |
</html> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment