DEV Community

Discussion on: Scroll-to-top Button in vanilla JS (Beginners)

Collapse
 
ljcdev profile image
ljc-dev

Hey Cory, thanks for reading 😄!! You can definitely use both. I kinda understand why you you want to choose between them. Having a sticky header might make a scroll to top button a bit redundant. But I believe it's ok to use them together especially if the page is kinda long. And btw, I don't think this would create a performance issue. Let's chat on Twitter 🙂!