| 194 | }; |
| 195 | |
| 196 | const handleAnimation = name => { |
| 197 | cancelAnimationFrame(animationRef.current); |
| 198 | animationRef.current = requestAnimationFrame(() => doAnimate(name)); |
| 199 | }; |
| 200 | |
| 201 | const onMouseEnter = () => handleAnimation('appear'); |
| 202 | const onMouseLeave = () => handleAnimation('disappear'); |
no test coverage detected