Skip to content

Instantly share code, notes, and snippets.

@Sebastian-Fitzner
Created January 15, 2015 16:25
Show Gist options
  • Save Sebastian-Fitzner/84e6552df57f0c4046ca to your computer and use it in GitHub Desktop.
Save Sebastian-Fitzner/84e6552df57f0c4046ca to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v3.1.0-beta)
// ----
@mixin breakpoint($breakpoint-1, $breakpoint-2: null, $mobile-first: false) {
@if $breakpoint-2 != null {
@media only screen and (min-width: $breakpoint-1) and (max-width: $breakpoint-2) {
@content;
}
} @else {
@if $mobile-first == true {
@media only screen and (min-width: $breakpoint-1) {
@content;
}
} @else {
$breakpoint-2: $breakpoint-1;
@media only screen and (max-width: $breakpoint-2) {
@content;
}
}
}
}
%slide-rotateFoldTop {
-webkit-transform-origin: 50% 100%;
transform-origin: 50% 100%;
-webkit-animation: rotateFoldTop .7s both ease;
animation: rotateFoldTop .7s both ease;
}
.test {
color: #fff;
@include breakpoint(640px) {
@extend %slide-rotateFoldTop;
}
}
.test {
-webkit-transform-origin: 50% 100%;
transform-origin: 50% 100%;
-webkit-animation: rotateFoldTop .7s both ease;
animation: rotateFoldTop .7s both ease; }
.test {
color: #fff; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment