Created
April 28, 2015 16:29
-
-
Save djamshed/f5a0c9a2806a9ba1d8d0 to your computer and use it in GitHub Desktop.
Compass SCSS keyframe + animation usage (keep forgetting syntax way too often)
This file contains hidden or 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
// opacity is animated from 0 to 1 and back to 0 in a single loop | |
@include keyframes( toggle-opacity ) | |
{ | |
0%, 100% { @include opacity(0); } | |
25%, 75% { @include opacity(0.5); } | |
50% { @include opacity(1); } | |
} | |
// blink (animate toggle-opacity) | |
.blink { | |
@include animation(toggle-opacity 1s infinite); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment