Created
January 17, 2014 01:21
-
-
Save erin-dot-io/8466822 to your computer and use it in GitHub Desktop.
Special easing functions built using @Keyframes. Requires Bourbon/SCSS
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
//// easeOutBounce //// | |
// looks like: http://easings.net/#easeOutBounce | |
@include keyframes(easeOutBounce) { | |
0% { @include transform(translateY(100px)); @include animation-timing-function(ease-in); } | |
37% { @include transform(translateY(0px)); @include animation-timing-function(ease-out); } | |
55% { @include transform(translateY(25px)); @include animation-timing-function(ease-in); } | |
73% { @include transform(translateY(0px)); @include animation-timing-function(ease-out); } | |
82% { @include transform(translateY(7px)); @include animation-timing-function(ease-in); } | |
91% { @include transform(translateY(0px)); @include animation-timing-function(ease-out); } | |
96% { @include transform(translateY(2px)); @include animation-timing-function(ease-in); } | |
100% { @include transform(translateY(0px));} | |
} | |
// example use: | |
.my-div { @include animation(easeOutBounce) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Erin,
that’s what I looked for, thanks!
How would you describe easeInBounce?
I am trying to make your calculations work together with query.transit, a great plugIn that I use on my website chaining in the following way:
$imageIn.transition( { x: -100 }, 37, 'in' )
.transition( { x: 0 }, 18, 'out' )
.transition( { x: 25 }, 18, 'in' )…
Garavani