MCPcopy
hub / github.com/callmecavs/jump.js / easeInOutQuad

Function easeInOutQuad

src/easing.js:6–11  ·  view source on GitHub ↗
(t, b, c, d)

Source from the content-addressed store, hash-verified

4// find them exported for ES6 consumption here: https://github.com/jaxgeller/ez.js
5
6const easeInOutQuad = (t, b, c, d) => {
7 t /= d / 2
8 if (t < 1) return c / 2 * t * t + b
9 t--
10 return -c / 2 * (t * (t - 2) - 1) + b
11}
12
13export default easeInOutQuad

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected