Chalarangelo/30-seconds-of-interviews

FEATURE REQUEST: Scroll to top

fejes713 opened this issue · 4 comments

Similarly to 30 seconds of CSS. Shouldn't be hard to implement

sticky CSS tag, on click of element run script to scroll to top of page with request animation frame loop for a smooth motion, or just set scroll position Y to zero for immediate jump? There are probably other ways too.

@atomiks how'd you end up doing it for 30CSS?

I'd like to avoid using any dependency if possible this time 🤐

Thanks to @atomiks for figuring this out 👍