Skip to content

Commit

Permalink
fix: #1044 (#1108) add hover effect in scroll to top button
Browse files Browse the repository at this point in the history
* add hover effect in scroll to top button

* add hover effect in scroll to top button final

* components/scrollToTop.jax: added features to button

* issue 1044 fiexd scroll up button

* Update ScrollToTop.jsx

Signed-off-by: Priyankar Pal  <[email protected]>

* Update ScrollToTop.jsx

Signed-off-by: Priyankar Pal  <[email protected]>

---------

Signed-off-by: Priyankar Pal  <[email protected]>
Co-authored-by: Priyankar Pal <[email protected]>
  • Loading branch information
aditya-stoic-sharma and priyankarpal authored Jun 8, 2023
1 parent 73f3480 commit 4de583d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/ScrollToTop.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ function ScrollToTop() {
type="button"
className={`fixed p-2 bg-gray-400 bg-opacity-100 shadow-lg rounded-full z-20 ${
isVisible ? ' bottom-4 right-4' : 'hidden'
}`}
} hover:from-indigo-500
hover:via-purple-700
hover:bg-gradient-to-r`}


onClick={scrollToTop}
>
<ArrowUp size={25} color="black" />
Expand Down

1 comment on commit 4de583d

@vercel
Copy link

@vercel vercel bot commented on 4de583d Jun 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

projectshut – ./

projectshut-priyankarpal.vercel.app
projectshut-git-main-priyankarpal.vercel.app
projectshut.vercel.app

Please sign in to comment.