Skip to content

Commit

Permalink
fix: back to top button transition
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-wang0 committed Jan 1, 2024
1 parent 0b615f9 commit 5cadffc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/search/ScrollToTop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ const ScrollToTop = () => {
return (
<div
className={`${
isVisible ? "visible opacity-60" : "invisible opacity-0"
} group fixed bottom-4 right-4 z-50 flex h-11 w-11 cursor-pointer items-center justify-center rounded-full bg-primary px-3 transition-all hover:w-40 hover:opacity-100`}
isVisible ? "visible opacity-60 hover:w-40 hover:opacity-100" : "opacity-0 invisible"
} group fixed bottom-4 right-4 z-50 flex h-11 w-11 cursor-pointer items-center justify-center rounded-full bg-primary px-3 transition-all`}
onClick={scrollToTop}
>
<div className="flex items-center justify-center">
Expand Down

0 comments on commit 5cadffc

Please sign in to comment.