Created
February 9, 2015 17:14
-
-
Save una/6a3d70e394fa22d64b73 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains 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="box"></div> |
This file contains 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.11) | |
// Compass (v1.0.3) | |
// ---- | |
// Animations | |
@keyframes fadeIn { | |
0% { opacity: 0; } | |
100% { opacity: 1; } | |
} | |
@keyframes fadeOut { | |
0% { opacity: 1; } | |
100% { opacity: 0; } | |
} | |
@keyframes scaleBounce { | |
0% { transform: scale(1);} | |
80% { transform: scale(3);} | |
100% { transform: scale(2.8);} | |
} | |
@mixin animate($args...) { | |
.info { | |
arg-length : length($args); | |
all-args: $args; | |
} | |
@each $animation in $args { | |
.animation { | |
content: $animation; | |
} | |
} | |
} | |
@include animate( fadeIn 2s ease-in 0, | |
scaleBounce 2s ease-in 0, | |
fadeOut 3s ease-in 5s ) |
This file contains 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
@keyframes fadeIn { | |
0% { | |
opacity: 0; | |
} | |
100% { | |
opacity: 1; | |
} | |
} | |
@keyframes fadeOut { | |
0% { | |
opacity: 1; | |
} | |
100% { | |
opacity: 0; | |
} | |
} | |
@keyframes scaleBounce { | |
0% { | |
transform: scale(1); | |
} | |
80% { | |
transform: scale(3); | |
} | |
100% { | |
transform: scale(2.8); | |
} | |
} | |
.info { | |
arg-length: 3; | |
all-args: fadeIn 2s ease-in 0, scaleBounce 2s ease-in 0, fadeOut 3s ease-in 5s; | |
} | |
.animation { | |
content: fadeIn 2s ease-in 0; | |
} | |
.animation { | |
content: scaleBounce 2s ease-in 0; | |
} | |
.animation { | |
content: fadeOut 3s ease-in 5s; | |
} |
This file contains 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="box"></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment