Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ampproject/amphtml
/ numeric
Function
numeric
src/core/dom/transition.js:61–63 ·
view source on GitHub ↗
(start, end)
Source
from the content-addressed store, hash-verified
59
* @
return
{TransitionDef<number>}
60
*/
61
export
function
numeric(start, end) {
62
return
(time) => start + (end - start) * time;
63
}
64
65
/**
66
* Adds
"px"
units.
Callers
8
test-transition.js
File · 0.90
interpolateScrollIntoView_
Method · 0.90
animateExpand_
Method · 0.90
animateCollapse_
Method · 0.90
go
Method · 0.90
mutateNewPosition
Method · 0.90
animateScrollLeft_
Method · 0.90
set_
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected