Last active
August 29, 2015 14:15
-
-
Save Snugug/3e231661f7e79242ed78 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="foo"> | |
| Hello World | |
| </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.11) | |
| // Compass (v1.0.3) | |
| // ---- | |
| $animations: ( | |
| 'fade-in': ( | |
| 0%: ( | |
| opacity: 0 | |
| ), | |
| 100%: ( | |
| opacity: 1 | |
| ) | |
| ), | |
| 'slide-in' : ( | |
| 0%: ( | |
| transform: translateY(-100%) | |
| ), | |
| 100%: ( | |
| transform: translateY(0) | |
| ) | |
| ) | |
| ); | |
| @mixin animate($name) { | |
| @if map-has-key($animations, $name) { | |
| @keyframes #{$name} { | |
| @each $position, $change in map-get($animations, $name) { | |
| #{$position} { | |
| @each $prop, $val in $change { | |
| #{$prop}: #{$val} | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| @include animate('fade-in'); | |
| @include animate('slide-in'); |
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
| @keyframes fade-in { | |
| 0% { | |
| opacity: 0; | |
| } | |
| 100% { | |
| opacity: 1; | |
| } | |
| } | |
| @keyframes slide-in { | |
| 0% { | |
| transform: translateY(-100%); | |
| } | |
| 100% { | |
| transform: translateY(0); | |
| } | |
| } |
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="foo"> | |
| Hello World | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment