Created
February 17, 2016 09:18
-
-
Save gogachinchaladze/27422fed605f94eac394 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
<div class="column"></div> | |
<div class="column"></div> | |
<div class="column"></div> | |
<div class="column"></div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.4.21) | |
// Compass (v1.0.3) | |
// ---- | |
// 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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
<div class="column"></div> | |
<div class="column"></div> | |
<div class="column"></div> | |
<div class="column"></div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment