Skip to content

Instantly share code, notes, and snippets.

@tdreyno
Created May 7, 2011 02:02
Show Gist options
  • Save tdreyno/960128 to your computer and use it in GitHub Desktop.
Save tdreyno/960128 to your computer and use it in GitHub Desktop.
Easing functions for Sass 3.1
@function linear() {
@return cubic-bezier(0.250, 0.250, 0.750, 0.750); }
@function ease() {
@return cubic-bezier(0.250, 0.100, 0.250, 1.000); }
@function ease-in() {
@return cubic-bezier(0.420, 0.000, 1.000, 1.000); }
@function ease-in-quad() {
@return cubic-bezier(0.550, 0.085, 0.680, 0.530); }
@function ease-in-cubic() {
@return cubic-bezier(0.550, 0.055, 0.675, 0.190); }
@function ease-in-quart() {
@return cubic-bezier(0.895, 0.030, 0.685, 0.220); }
@function ease-in-quint() {
@return cubic-bezier(0.755, 0.050, 0.855, 0.060); }
@function ease-in-sine() {
@return cubic-bezier(0.470, 0.000, 0.745, 0.715); }
@function ease-in-expo() {
@return cubic-bezier(0.950, 0.050, 0.795, 0.035); }
@function ease-in-circ() {
@return cubic-bezier(0.600, 0.040, 0.980, 0.335); }
@function ease-out() {
@return cubic-bezier(0.000, 0.000, 0.580, 1.000); }
@function ease-out-quad() {
@return cubic-bezier(0.250, 0.460, 0.450, 0.940); }
@function ease-out-cubic() {
@return cubic-bezier(0.215, 0.610, 0.355, 1.000); }
@function ease-out-quart() {
@return cubic-bezier(0.165, 0.840, 0.440, 1.000); }
@function ease-out-quint() {
@return cubic-bezier(0.230, 1.000, 0.320, 1.000); }
@function ease-out-sine() {
@return cubic-bezier(0.390, 0.575, 0.565, 1.000); }
@function ease-out-expo() {
@return cubic-bezier(0.190, 1.000, 0.220, 1.000); }
@function ease-out-circ() {
@return cubic-bezier(0.075, 0.820, 0.165, 1.000); }
@function ease-in-out() {
@return cubic-bezier(0.420, 0.000, 0.580, 1.000); }
@function ease-in-out-quad() {
@return cubic-bezier(0.455, 0.030, 0.515, 0.955); }
@function ease-in-out-cubic() {
@return cubic-bezier(0.645, 0.045, 0.355, 1.000); }
@function ease-in-out-quart() {
@return cubic-bezier(0.770, 0.000, 0.175, 1.000); }
@function ease-in-out-quint() {
@return cubic-bezier(0.860, 0.000, 0.070, 1.000); }
@function ease-in-out-sine() {
@return cubic-bezier(0.445, 0.050, 0.550, 0.950); }
@function ease-in-out-expo() {
@return cubic-bezier(1.000, 0.000, 0.000, 1.000); }
@function ease-in-out-circ() {
@return cubic-bezier(0.785, 0.135, 0.150, 0.860); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment