diff --git a/src/components/ui/Transition.tsx b/src/components/ui/Transition.tsx index 1e2b298d..f9f737c8 100644 --- a/src/components/ui/Transition.tsx +++ b/src/components/ui/Transition.tsx @@ -146,9 +146,9 @@ const Transition: FC = ({ } function onAnimationEnd() { - if (activeIndex !== currentIndexRef.current) return; - requestAnimationFrame(() => { + if (activeIndex !== currentIndexRef.current) return; + container.classList.remove('animating', 'backwards'); childNodes.forEach((node, i) => {