MCPcopy Create free account
hub / github.com/codrops/OnScrollShapeMorph / scrollFn

Function scrollFn

js/index.js:19–22  ·  view source on GitHub ↗
(time)

Source from the content-addressed store, hash-verified

17
18 // Define a function to run at each animation frame
19 const scrollFn = (time) => {
20 lenis.raf(time); // Run Lenis' requestAnimationFrame method
21 requestAnimationFrame(scrollFn); // Recursively call scrollFn on each frame
22 };
23 // Start the animation frame loop
24 requestAnimationFrame(scrollFn);
25};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected