MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / getSeconds

Function getSeconds

src/content/Animations/FadeContent/FadeContent.jsx:38–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 const startPct = (1 - threshold) * 100;
37
38 const getSeconds = val => (typeof val === 'number' && val > 10 ? val / 1000 : val);
39
40 gsap.set(el, {
41 autoAlpha: initialOpacity,

Callers 1

FadeContentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected