Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/breck7/scroll
/ polyInOut
Function
polyInOut
external/.d3.js:5049–5051 ·
view source on GitHub ↗
(t)
Source
from the content-addressed store, hash-verified
5047
e = +e;
5048
5049
function
polyInOut(t) {
5050
return
((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2;
5051
}
5052
5053
polyInOut.exponent = custom;
5054
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected