Skip to content

Commit ae17c97

Browse files
AppleApple
authored andcommitted
Make Scroll to top button attractive with Hover effects
1 parent 1b23c89 commit ae17c97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/buttons/ScrollButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function ScrollButton() {
2828
return (
2929
<div className='fixed bottom-14 right-4 z-40 h-16 w-12'>
3030
{backToTopButton && (
31-
<button className='rounded-full bg-white shadow-md ' onClick={scrollUp}>
31+
<button className='rounded-full bg-white shadow-md hover:bg-[#8851FB] hover:scale-110 transition-all duration-300 ease-in-out' onClick={scrollUp}>
3232
<img src={scrollImage} alt='scroll to top' />
3333
</button>
3434
)}

0 commit comments

Comments
 (0)