()
| 43 | } |
| 44 | } |
| 45 | const getDirection = () => { |
| 46 | if (containerRef.current) { |
| 47 | if (direction === 'left') { |
| 48 | containerRef.current.style.setProperty( |
| 49 | '--animation-direction', |
| 50 | 'forwards', |
| 51 | ); |
| 52 | } else { |
| 53 | containerRef.current.style.setProperty( |
| 54 | '--animation-direction', |
| 55 | 'reverse', |
| 56 | ); |
| 57 | } |
| 58 | } |
| 59 | }; |
| 60 | const getSpeed = () => { |
| 61 | if (containerRef.current) { |
| 62 | if (speed === 'fast') { |