MCPcopy Create free account
hub / github.com/chartjs/Chart.js / elasticIn

Function elasticIn

src/helpers/helpers.easing.ts:4–4  ·  view source on GitHub ↗
(t: number, s: number, p: number)

Source from the content-addressed store, hash-verified

2
3const atEdge = (t: number) => t === 0 || t === 1;
4const elasticIn = (t: number, s: number, p: number) => -(Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * TAU / p));
5const elasticOut = (t: number, s: number, p: number) => Math.pow(2, -10 * t) * Math.sin((t - s) * TAU / p) + 1;
6
7/**

Callers 2

helpers.easing.tsFile · 0.85
easeInOutElasticFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected