Skip to content

Instantly share code, notes, and snippets.

@lucasad
Created August 13, 2013 20:13
Show Gist options
  • Save lucasad/6225208 to your computer and use it in GitHub Desktop.
Save lucasad/6225208 to your computer and use it in GitHub Desktop.
Expanding input
/**
* Expanding input
*/
/*
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;*/
#s {
transition: width 1s;
width: 20em;
}
#s:focus {
width: 100%
}
<!-- content to be placed inside <body>…</body> -->
<input type="search" id="s">
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment