Skip to content

Instantly share code, notes, and snippets.

@dmackerman
Created June 29, 2012 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmackerman/3018796 to your computer and use it in GitHub Desktop.
Save dmackerman/3018796 to your computer and use it in GitHub Desktop.
// our search box, hidden for now
.search-container {
@include transition(height .3s ease);
// To get full hardware acceleration on animations, you need to activate the 3D rendering engine.
-webkit-transform: translateZ(0);
-webkit-backface-visibility: hidden;
position: relative;
height: 0px;
opacity: 0;
overflow: hidden;
visibility: hidden;
text-align: center;
clear: both;
&.expanded {
height: 46px;
opacity: 1;
}
input[role="search"] {
padding: 15px 10px;
font-weight: bold;
width: 95%;
margin: 6px 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment