MCPcopy
hub / github.com/greensock/GSAP / _renderCSSPropWithBeginning

Function _renderCSSPropWithBeginning

esm/CSSPlugin.js:44–46  ·  view source on GitHub ↗
(ratio, data)

Source from the content-addressed store, hash-verified

42 return data.set(data.t, data.p, ratio === 1 ? data.e : Math.round((data.s + data.c * ratio) * 10000) / 10000 + data.u, data);
43},
44 _renderCSSPropWithBeginning = function _renderCSSPropWithBeginning(ratio, data) {
45 return data.set(data.t, data.p, ratio ? Math.round((data.s + data.c * ratio) * 10000) / 10000 + data.u : data.b, data);
46},
47 //if units change, we need a way to render the original unit/value when the tween goes all the way back to the beginning (ratio:0)
48_renderCSSPropWithBeginningAndEnd = function _renderCSSPropWithBeginningAndEnd(ratio, data) {
49 return data.set(data.t, data.p, ratio === 1 ? data.e : ratio ? Math.round((data.s + data.c * ratio) * 10000) / 10000 + data.u : data.b, data);

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…