styled-components animation cancellation on unmount
Ensuring that CSS animations defined with styled-components' `animate` prop or `keyframes` are cleanly stopped when a component unmounts prevents stray DOM updates and potential memory leaks. The current implementation depends on React's useEffect cleanup but does not expose a dedicated cancel method, creating ambiguity for library authors and risking residu