MCPcopy Create free account
hub / github.com/code-forge-io/react-router-devtools / getSpeed

Function getSpeed

docs/app/components/ui/infinite-cards.tsx:53–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 }
52 }
53 const getSpeed = () => {
54 if (containerRef.current) {
55 if (speed === "fast") {
56 containerRef.current.style.setProperty("--animation-duration", "20s")
57 } else if (speed === "normal") {
58 containerRef.current.style.setProperty("--animation-duration", "40s")
59 } else {
60 containerRef.current.style.setProperty("--animation-duration", "80s")
61 }
62 }
63 }
64 return (
65 <div
66 ref={containerRef}

Callers 1

addAnimationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…