phollyer/elm-motion/2.1.1

NOTE: the latest version is 3.0.4

Motion.Easing

Easing functions for animations and scrolls.

Use them to create smooth and natural movement.

If you don't set an easing function, the defaults are:

  • Animations: EaseInOut, which is a good general-purpose easing.
  • Scrolls: QuintOut, which gives a nice smooth scroll effect, with a natural "settling into place" feel.

📖 See Easing Documentation for details.

Easing Type

type Easing
= BackIn
| BackOut
| BackInOut
| BackInCustom Float
| BackOutCustom Float
| BackInOutCustom ( Float, Float )
| BounceIn
| BounceOut
| BounceInOut
| CircIn
| CircOut
| CircInOut
| CubicBezier Float Float Float Float
| CubicIn
| CubicOut
| CubicInOut
| Ease
| EaseIn
| EaseOut
| EaseInOut
| ElasticIn
| ElasticOut
| ElasticInOut
| ExpoIn
| ExpoOut
| ExpoInOut
| Linear
| QuadIn
| QuadOut
| QuadInOut
| QuartIn
| QuartOut
| QuartInOut
| QuintIn
| QuintOut
| QuintInOut
| SineIn
| SineOut
| SineInOut

Utility

toString : Easing -> String

Convert an easing function to a string representation.

This is useful for debugging and logging purposes.