Created
May 29, 2014 16:56
-
-
Save phuedx/0639a279b6efb1a71474 to your computer and use it in GitHub Desktop.
ext.guidedTour.animations.less
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
.fade-in-keyframes-for-direction(@direction, @dx, @dy) { | |
@-webkit-keyframes mwe-gt-fade-in-@{direction} { | |
.mwe-gt-fade-in-translate-frames(@dx, @dy); | |
} | |
@-moz-keyframes mwe-gt-fade-in-@{direction} { | |
.mwe-gt-fade-in-translate-frames(@dx, @dy); | |
} | |
@-o-keyframes mwe-gt-fade-in-@{direction} { | |
.mwe-gt-fade-in-translate-frames(@dx, @dy); | |
} | |
@keyframes mwe-gt-fade-in-@{direction} { | |
.mwe-gt-fade-in-translate-frames(@dx, @dy); | |
} | |
.mwe-gt-fade-in-@{direction} { | |
// TODO (phuedx, 2014-05-29): 0.3s and ease should be either generated | |
// by another mixin or should be constants. | |
.animation(~"mwe-gt-fade-in-@{direction}" 0.3s, ease); | |
.mwe-gt-animation-forward(); | |
} | |
} | |
.fade-in-keyframes-for-direction(up, 0, 20px); | |
.fade-in-keyframes-for-direction(left, 20px, 0); | |
.fade-in-keyframes-for-direction(down, 0, -20px); | |
.fade-in-keyframes-for-direction(right, -20px, 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment