Skip to content

Instantly share code, notes, and snippets.

@phuedx
Created May 29, 2014 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phuedx/0639a279b6efb1a71474 to your computer and use it in GitHub Desktop.
Save phuedx/0639a279b6efb1a71474 to your computer and use it in GitHub Desktop.
ext.guidedTour.animations.less
.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