MCPcopy Create free account
hub / github.com/ampproject/amphtml / tr

Method tr

src/service/fixed-layer.js:890–892  ·  view source on GitHub ↗
(time)

Source from the content-addressed store, hash-verified

888 }
889 // Add transit effect on position fixed element
890 const tr = (time) => {
891 return lastPaddingTop - paddingTop + (paddingTop - lastPaddingTop) * time;
892 };
893 return Animation.animate(
894 this.ampdoc.getRootNode(),
895 (time) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected