Sprotty
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Function.Ease in Out

sprotty / easeInOut

Function: easeInOut()

easeInOut(x): number

Defined in: packages/sprotty/src/base/animations/easing.ts:24

Slows down animations towards the begin and the end.

Parameters

x

number

the value between 0 (start of animation) and 1 (end of animation) linearly interpolated in time.

Returns

number

the eased value between 0 and 1