()
| 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} |