MCPcopy Create free account
hub / github.com/code100x/cms / getSpeed

Function getSpeed

src/components/ui/infinite-moving-cards.tsx:60–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 }
59 };
60 const getSpeed = () => {
61 if (containerRef.current) {
62 if (speed === 'fast') {
63 containerRef.current.style.setProperty('--animation-duration', '20s');
64 } else if (speed === 'normal') {
65 containerRef.current.style.setProperty('--animation-duration', '40s');
66 } else {
67 containerRef.current.style.setProperty('--animation-duration', '80s');
68 }
69 }
70 };
71 return (
72 <div
73 ref={containerRef}

Callers 1

addAnimationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected