Follow

I'm already at day 12 of

I've managed to get rid of one of the plugins on my site, by implementing a simple "scroll to top" feature.

Bonus points for doing it without JavaScript!

kevq.uk/adding-a-scroll-to-top

@kev It’s nice to see that you want to minimise javascript! This should be a requirement for webdevs in my opinion.
One note though: Smooth scrolling doesn’t work on my iPhone ☹️

@vordenken uh yeah, you're right. That's a bit shit. Ah well, it's a means to an end. I'd rather that than having a load JS added to the site.

I imagine most people just swipe on a touch device anyway? I know I do.

@kev That really is an incredibly simple solution. Nice!

@gray I'm all about the K.I.S.S principle. 🙂

Sign in to participate in the conversation
Fosstodon

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.