Categories
css

transition-timing-function

  • Ease (default): accelerate sharply – decelerate
  • linear: no speed change
  • ease-in: accelerate smoothly
  • ease-out: decelerate smoothly
  • ease-in-out: accelerate smoothly – decelerate smoothly
  • steps( n, <jumpterm>): Staircase functions enable animation to jump between the specific number of frames in a non-continuous way.
Easing Functioncubic-bezier ValueStarting SpeedMiddle SpeedEnding Speed
linearcubic-bezier(0.0, 0.0, 1.0, 1.0)constantconstantconstant
easecubic-bezier(0.25, 0.1, 0.25, 1.0)sharp accelerationaccelerationdeceleration
ease-incubic-bezier(0.42, 0, 1.0, 1.0)smooth
acceleration
accelerationfull speed
ease-outcubic-bezier(0, 0, 0.58, 1.0)full speeddecelerationsmooth
deceleration
ease-in-outcubic-bezier(0.42, 0, 0.58, 1.0)smooth accelerationfull speeddeceleration

https://www.smashingmagazine.com/2021/04/easing-functions-css-animations-transitions/

Leave a comment