Last active
December 16, 2015 09:59
-
-
Save alettieri/5416893 to your computer and use it in GitHub Desktop.
Keyframes example
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
@include keyframes( bounceIn ) { | |
0% { | |
opacity: 0; | |
@include transform( .3 ); | |
@include box-shadow( 0 0 1px rgba( 0, 0, 0, .45 ) ); | |
} | |
50% { | |
opacity: 1; | |
@include transform( scale(1.05) ); | |
@include box-shadow( 0 0 5px rgba( 0, 0, 0, .45 ) ); | |
} | |
70% { | |
@include transform( scale(.9) ); | |
@include box-shadow( 0 0 3px rgba( 0, 0, 0, .45 ) ); | |
} | |
100% { | |
@include transform( scale(1) ); | |
} | |
} | |
.animate-me { | |
@include animation-name( bounceIn ); | |
@include animation-fill-mode( both ); | |
@include animation-duration( 1s ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment