easeInOut

A 0..1 value that starts slow, speeds up, and slows again at the end.

easeInOut(x: Expr): Expr

Import motion from shaders/std and use motion.easeInOut.

Parameters

NameTypeNotes
xExpr

Example

const glide = motion.easeInOut(progress)

See also

  • easeIn — A 0..1 value that starts slow and speeds up.
  • easeOut — A 0..1 value that starts fast and slows to a stop.