Docs / Shaping functions

Glossary: ShapingFunctionId

The values of ShapingFunctionId.

Names a function of the library, for ShapingFunctionFactory.Create.

An enum with explicit numbers, safe to save: a number never changes and is never used again for another function. The values are in the order the enum declares them, which groups them by category. The catalog page shows it in context.

Values

Custom →

-1 · Shared by every custom function, so it names none: ShapingFunctionFactory.Create throws for it.

BackEaseIn →

0 · BackEaseIn, in Back. Pulls back below the start by 10%, then speeds up to the end.

BackEaseInOut →

1 · BackEaseInOut, in Back. Pulls back 10% below the start, rushes through the middle and overshoots the end by 10% before settling.

BackEaseOut →

2 · BackEaseOut, in Back. Rushes past the end by 10%, then settles back onto it.

BezierCubic →

3 · BezierCubic, in Bezier. A cubic Bézier from (0, 0) to (1, 1) shaped by two control points: the curve of CSS’s cubic-bezier().

BezierQuadratic →

4 · BezierQuadratic, in Bezier. A quadratic Bézier from (0, 0) to (1, 1) shaped by one control point.

BounceEaseIn →

5 · BounceEaseIn, in Bounce. Three growing hops off the start, then a fall to the end: BounceEaseOut played backwards.

BounceEaseInOut →

6 · BounceEaseInOut, in Bounce. Hops off the start, crosses the middle at full speed and bounces to rest on the end.

BounceEaseOut →

7 · BounceEaseOut, in Bounce. Falls onto the end and bounces three times, each lower, like a dropped ball.

CircularDoubleSeat →

8 · CircularDoubleSeat, in Circular. Two quarter circles that meet flat at (A, A): a rise, a pause, a rise.

CircularDoubleSigmoid →

9 · CircularDoubleSigmoid, in Circular. Two quarter circles that meet upright at (A, A): an S that stands vertical where they meet.

CircularEaseIn →

10 · CircularEaseIn, in Circular. A quarter circle that starts flat and ends upright.

CircularEaseInOut →

11 · CircularEaseInOut, in Circular. Two quarter circles: flat at both ends and upright at the middle.

CircularEaseOut →

12 · CircularEaseOut, in Circular. A quarter circle that starts upright and ends flat.

ElasticEaseIn →

13 · ElasticEaseIn, in Elastic. Swings about the start, more each time, then snaps to the end: a spring winding up.

ElasticEaseInOut →

14 · ElasticEaseInOut, in Elastic. Winds up about the start, snaps across the middle and wobbles to rest on the end.

ElasticEaseOut →

15 · ElasticEaseOut, in Elastic. Snaps past the end by 37% and wobbles to rest on it, like a released spring.

EllipticalDoubleSeat →

16 · EllipticalDoubleSeat, in Elliptical. Two quarter ellipses that meet flat at (A, B): a seat at any height.

EllipticalDoubleSigmoid →

17 · EllipticalDoubleSigmoid, in Elliptical. Two quarter ellipses that meet upright at (A, B): an S that stands vertical at any point.

ExponentialDoubleSeat →

18 · ExponentialDoubleSeat, in Exponential. 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 →

19 · ExponentialEaseIn, in Exponential. Doubles every tenth of the way: almost still at first, then very fast.

ExponentialEaseInOut →

20 · ExponentialEaseInOut, in Exponential. Exponential in and out: almost still at both ends, very fast at the middle.

ExponentialEaseOut →

21 · ExponentialEaseOut, in Exponential. Halves its distance to the end every tenth of the way: very fast at first, then almost still.

LogisticSigmoid →

22 · LogisticSigmoid, in Exponential. 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 →

23 · Linear, in Linear. The straight line: the output is the input.

QuadraticEaseIn →

24 · QuadraticEaseIn, in Quadratic. x²: starts still and speeds up evenly.

QuadraticEaseInOut →

25 · QuadraticEaseInOut, in Quadratic. Quadratic in and out: speeds up evenly to the middle, then slows evenly to the end.

QuadraticEaseOut →

26 · QuadraticEaseOut, in Quadratic. Starts at twice the speed of Linear and slows evenly to a stop.

QuadraticThroughAGivenPoint →

27 · QuadraticThroughAGivenPoint, in Quadratic. The parabola through (0, 0), (A, B) and (1, 1), kept within 0 to 1.

CubicDoubleSeat →

28 · CubicDoubleSeat, in Cubic. Two cubics that meet flat at (A, B): a rise, a pause, a rise.

CubicEaseIn →

29 · CubicEaseIn, in Cubic. x³: starts still and speeds up, more sharply than the quadratic.

CubicEaseInOut →

30 · CubicEaseInOut, in Cubic. Cubic in and out: slow at both ends, fast in the middle.

CubicEaseOut →

31 · CubicEaseOut, in Cubic. Starts at three times the speed of Linear and slows to a stop, more sharply than the quadratic.

QuarticEaseIn →

32 · QuarticEaseIn, in Quartic. x⁴: a long, slow start and a fast finish.

QuarticEaseInOut →

33 · QuarticEaseInOut, in Quartic. Quartic in and out: long, slow ends and a quick middle.

QuarticEaseOut →

34 · QuarticEaseOut, in Quartic. A fast start and a long, slow stop.

QuinticEaseIn →

35 · QuinticEaseIn, in Quintic. x⁵: the longest, slowest start of the polynomial eases.

QuinticEaseInOut →

36 · QuinticEaseInOut, in Quintic. Quintic in and out: the longest, slowest ends of the polynomial in-outs.

QuinticEaseOut →

37 · QuinticEaseOut, in Quintic. The fastest start and the longest, slowest stop of the polynomial eases.

BlinnWyvillCosineApproximation →

38 · BlinnWyvillCosineApproximation, in Hexic. A polynomial of degree 6 that follows SineEaseInOut to within 0.003, without a cosine.

DoubleOddPolynomialSeat →

39 · DoubleOddPolynomialSeat, in NOrder. Two odd powers that meet flat at (A, B): the cubic seat with a longer, flatter pause as N grows.

DoublePolynomialSigmoid →

40 · DoublePolynomialSigmoid, in NOrder. Two powers of N that meet at the middle: the in-out of any degree.

SineEaseIn →

41 · SineEaseIn, in Sine. A quarter of a cosine: the gentlest ease in.

SineEaseInOut →

42 · SineEaseInOut, in Sine. Half a cosine wave: the gentlest ease in-out.

SineEaseOut →

43 · SineEaseOut, in Sine. A quarter of a sine: the gentlest ease out.