MCPcopy Create free account
hub / github.com/breck7/scroll / bounceIn

Function bounceIn

external/.d3.js:5113–5115  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

5111 b0 = 1 / b1 / b1;
5112
5113function bounceIn(t) {
5114 return 1 - bounceOut(1 - t);
5115}
5116
5117function bounceOut(t) {
5118 return (t = +t) < b1 ? b0 * t * t : t < b3 ? b0 * (t -= b2) * t + b4 : t < b6 ? b0 * (t -= b5) * t + b7 : b0 * (t -= b8) * t + b9;

Callers

nothing calls this directly

Calls 1

bounceOutFunction · 0.85

Tested by

no test coverage detected