Docs / Shaping functions

Shaping functions glossary: functions

The 44 curves of the library by category, one page each with a picture and the formula.

Each function has a page with a picture of its curve, its formula, the values of its properties and its constructor, and its parameters if it has any. The sidebar lists them by category, in the order of the ShapingFunctionCatalog.

Back

The curves that overshoot by 10% before settling.

Function What it is
BackEaseIn Pulls back below the start by 10%, then speeds up to the end.
BackEaseInOut Pulls back 10% below the start, rushes through the middle and overshoots the end by 10% before settling.
BackEaseOut Rushes past the end by 10%, then settles back onto it.

Bezier

Bézier curves shaped by their control points.

Function What it is
BezierCubic A cubic Bézier from (0, 0) to (1, 1) shaped by two control points: the curve of CSS’s cubic-bezier().
BezierQuadratic A quadratic Bézier from (0, 0) to (1, 1) shaped by one control point.

Bounce

The curves that bounce like a dropped ball.

Function What it is
BounceEaseIn Three growing hops off the start, then a fall to the end: BounceEaseOut played backwards.
BounceEaseInOut Hops off the start, crosses the middle at full speed and bounces to rest on the end.
BounceEaseOut Falls onto the end and bounces three times, each lower, like a dropped ball.

Circular

Curves made of quarter circles.

Function What it is
CircularDoubleSeat Two quarter circles that meet flat at (A, A): a rise, a pause, a rise.
CircularDoubleSigmoid Two quarter circles that meet upright at (A, A): an S that stands vertical where they meet.
CircularEaseIn A quarter circle that starts flat and ends upright.
CircularEaseInOut Two quarter circles: flat at both ends and upright at the middle.
CircularEaseOut A quarter circle that starts upright and ends flat.

Elastic

The curves that wobble like a spring, overshooting by up to 37%.

Function What it is
ElasticEaseIn Swings about the start, more each time, then snaps to the end: a spring winding up.
ElasticEaseInOut Winds up about the start, snaps across the middle and wobbles to rest on the end.
ElasticEaseOut Snaps past the end by 37% and wobbles to rest on it, like a released spring.

Elliptical

Curves made of quarter ellipses.

Function What it is
EllipticalDoubleSeat Two quarter ellipses that meet flat at (A, B): a seat at any height.
EllipticalDoubleSigmoid Two quarter ellipses that meet upright at (A, B): an S that stands vertical at any point.

Exponential

The exponential eases, the exponential seat and the logistic sigmoid.

Function What it is
ExponentialDoubleSeat Two power curves that meet at the middle: from a straight line at A = 0 to a plateau at 0.5 as A nears 1.
ExponentialEaseIn Doubles every tenth of the way: almost still at first, then very fast.
ExponentialEaseInOut Exponential in and out: almost still at both ends, very fast at the middle.
ExponentialEaseOut Halves its distance to the end every tenth of the way: very fast at first, then almost still.
LogisticSigmoid The logistic S-curve, scaled to run from 0 to 1: from a straight line at A = 0 to a step at 0.5 as A nears 1.

Linear

The straight line.

Function What it is
Linear The straight line: the output is the input.

Quadratic

The curves of degree 2.

Function What it is
QuadraticEaseIn x²: starts still and speeds up evenly.
QuadraticEaseInOut Quadratic in and out: speeds up evenly to the middle, then slows evenly to the end.
QuadraticEaseOut Starts at twice the speed of Linear and slows evenly to a stop.
QuadraticThroughAGivenPoint The parabola through (0, 0), (A, B) and (1, 1), kept within 0 to 1.

Cubic

The curves of degree 3.

Function What it is
CubicDoubleSeat Two cubics that meet flat at (A, B): a rise, a pause, a rise.
CubicEaseIn x³: starts still and speeds up, more sharply than the quadratic.
CubicEaseInOut Cubic in and out: slow at both ends, fast in the middle.
CubicEaseOut Starts at three times the speed of Linear and slows to a stop, more sharply than the quadratic.

Quartic

The curves of degree 4.

Function What it is
QuarticEaseIn x⁴: a long, slow start and a fast finish.
QuarticEaseInOut Quartic in and out: long, slow ends and a quick middle.
QuarticEaseOut A fast start and a long, slow stop.

Quintic

The curves of degree 5.

Function What it is
QuinticEaseIn x⁵: the longest, slowest start of the polynomial eases.
QuinticEaseInOut Quintic in and out: the longest, slowest ends of the polynomial in-outs.
QuinticEaseOut The fastest start and the longest, slowest stop of the polynomial eases.

Hexic

The curve of degree 6: the Blinn-Wyvill cosine approximation.

Function What it is
BlinnWyvillCosineApproximation A polynomial of degree 6 that follows SineEaseInOut to within 0.003, without a cosine.

NOrder

Polynomial curves whose degree is set by the order N.

Function What it is
DoubleOddPolynomialSeat Two odd powers that meet flat at (A, B): the cubic seat with a longer, flatter pause as N grows.
DoublePolynomialSigmoid Two powers of N that meet at the middle: the in-out of any degree.

Sine

The sine eases.

Function What it is
SineEaseIn A quarter of a cosine: the gentlest ease in.
SineEaseInOut Half a cosine wave: the gentlest ease in-out.
SineEaseOut A quarter of a sine: the gentlest ease out.