Created
January 15, 2015 16:25
-
-
Save Sebastian-Fitzner/84e6552df57f0c4046ca 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
// ---- | |
// 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; | |
} | |
} |
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
.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