Skip to content

Instantly share code, notes, and snippets.

Lorenzo Gasperoni lorenzo-gasperoni

Block or report user

Report or block lorenzo-gasperoni

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View [CSS] animate from height: 0 to height: auto
/* Use max-height in the transformation and not height.
/* And set a value on max-height to something bigger than your box will ever get. */
#menu #list {
max-height: 0;
transition: max-height 0.15s ease-out;
overflow: hidden;
background: #d5d5d5;
View [JS] Object.keys
// object
var object = {
label1: 'value1',
label2: 'value2'
// cycle object having access to labels and values
Object.keys(person).forEach(function(trait) {
console.log('Person ', trait,': ', person[trait]);
You can’t perform that action at this time.