Created
August 1, 2014 08:03
-
-
Save fiinix/80afcc7b9825a478f429 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
// ---- | |
// Sass (v3.3.12) | |
// Compass (v1.0.0.alpha.21) | |
// ---- | |
// Silent placeholder, doesn't behave as expected, or I'm being daft. | |
%animated-shake { | |
@at-root { | |
@keyframes shake { | |
0%, 100% { | |
transform: translate3d(0, 0, 0); | |
} | |
10%, 30%, 50%, 70%, 90% { | |
transform: translate3d(-10px, 0, 0); | |
} | |
20%, 40%, 60%, 80% { | |
transform: translate3d(10px, 0, 0); | |
} | |
} | |
} | |
animation-name: shake; | |
} | |
// Silent placeholder, behaves as expected. | |
%silent { | |
background:red; | |
} |
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
@keyframes shake { | |
0%, 100% { | |
transform: translate3d(0, 0, 0); | |
} | |
10%, 30%, 50%, 70%, 90% { | |
transform: translate3d(-10px, 0, 0); | |
} | |
20%, 40%, 60%, 80% { | |
transform: translate3d(10px, 0, 0); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment