Skip to content

Commit

Permalink
Merge pull request #404 from nagalakshmi08/toparrow
Browse files Browse the repository at this point in the history
Scroll to top arrow working properly.
  • Loading branch information
Akshatchaube01 authored Aug 8, 2024
2 parents 63a5bab + 38eee64 commit 4b3fbdc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
21 changes: 0 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/components/BottomToTop.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const GoToTop = () => {
<div
onClick={goToTop}
className="flex justify-center items-center fixed bottom-20 right-5 w-12 h-12 bg-blue-500 text-white rounded-full cursor-pointer transition-transform transform hover:bg-blue-700 hover:-translate-y-1"
style={{ zIndex: 9999 }}
>
<FaArrowUp className="text-lg" />
</div>
Expand All @@ -36,4 +37,3 @@ const GoToTop = () => {
};

export default GoToTop;

0 comments on commit 4b3fbdc

Please sign in to comment.