Skip to content

Instantly share code, notes, and snippets.

@gogachinchaladze
Created February 17, 2016 09:19
Show Gist options
  • Save gogachinchaladze/92fbf49ed33ed2669b01 to your computer and use it in GitHub Desktop.
Save gogachinchaladze/92fbf49ed33ed2669b01 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
// Sass (v3.4.4)
$container-width: 100%;
$column-count: 4;
$margin: 1%;
$first-div-animation-time:2s;
$second-div-animation-time:1s;
.container {
width: $container-width;
}
.column {
background: #1abc9c;
height: 200px;
display: block;
float: left;
width: ($container-width / $column-count) - ($margin * 2);
margin: 0 $margin;
}
.column.column-1{
transition: opacity $first-div-animation-time ease 0s;
}
.column.column-2{
transition: opacity $second-div-animation-time ease $first-div-animation-time;
}
.container {
width: 100%;
}
.column {
background: #1abc9c;
height: 200px;
display: block;
float: left;
width: 23%;
margin: 0 1%;
}
.column.column-1 {
transition: opacity 2s ease 0s;
}
.column.column-2 {
transition: opacity 1s ease 2s;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment