Skip to content

Commit

Permalink
fix: fix register button transition delay
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronchan32 committed Apr 6, 2024
1 parent 21c4b62 commit cd4d9f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/LogoAndRegister/LogoAndRegister.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export default function LogoAndRegister({
registerRef.current.style.transform = `translate(${fakeRegisterInfo.x}px, ${fakeRegisterInfo.y}px)`;
registerRef.current.style.opacity = '1';
setTimeout(() => {
(registerRef.current!.style.transition = 'transform 0.4s ease-out'), 0;
});
registerRef.current!.style.transition = 'transform 0.4s ease-out';
}, 500);
}

if (scrollContainerRef.current && logoRef.current) {
Expand Down

0 comments on commit cd4d9f2

Please sign in to comment.