Skip to content

Instantly share code, notes, and snippets.

@pzi
pzi / input_file.css
Created Feb 20, 2013
Style input type="file" in Webkit (Chrome, Safari)
View input_file.css
input[type=file] {
position: relative;
-webkit-appearance: textfield;
-webkit-box-sizing: border-box;
}
input[type=file]::-webkit-file-upload-button {
border: none;
margin: 0;
padding: 0;
@ludder
ludder / slideDown.js
Created Dec 6, 2012
Vanilla JavaScript slideUp and slideDown functions
View slideDown.js
/*
Element to slide gets the following CSS:
max-height: 0;
opacity: 0;
overflow: hidden;
transition: max-height 0.4s ease 0s;
*/
/**
* Like jQuery's slideDown function - uses CSS3 transitions
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.