()
| 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} |
no outgoing calls
no test coverage detected
searching dependent graphs…