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

Function elasticIn

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

Source from the content-addressed store, hash-verified

5168 var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau$5);
5169
5170 function elasticIn(t) {
5171 return a * tpmt(-(--t)) * Math.sin((s - t) / p);
5172 }
5173
5174 elasticIn.amplitude = function(a) { return custom(a, p * tau$5); };
5175 elasticIn.period = function(p) { return custom(a, p); };

Callers

nothing calls this directly

Calls 1

tpmtFunction · 0.85

Tested by

no test coverage detected