MCPcopy
hub / github.com/JedWatson/react-select / easeOutCubic

Function easeOutCubic

packages/react-select/src/utils.ts:233–235  ·  view source on GitHub ↗

@param t: time (elapsed) @param b: initial value @param c: amount of change @param d: duration

(t: number, b: number, c: number, d: number)

Source from the content-addressed store, hash-verified

231 @param d: duration
232*/
233function easeOutCubic(t: number, b: number, c: number, d: number): number {
234 return c * ((t = t / d - 1) * t * t + 1) + b;
235}
236
237export function animatedScrollTo(
238 element: HTMLElement | typeof window,

Callers 1

animateScrollFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…