MCPcopy 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 */
61export function numeric(start, end) {
62 return (time) => start + (end - start) * time;
63}
64
65/**
66 * Adds "px" units.

Callers 8

test-transition.jsFile · 0.90
animateExpand_Method · 0.90
animateCollapse_Method · 0.90
goMethod · 0.90
mutateNewPositionMethod · 0.90
animateScrollLeft_Method · 0.90
set_Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected