Add scroll easing to Genesis “Return to Top of Page” link

There’s one slightly cool feature built into Genesis that’s always bothered me a bit because it’s so jarring: the Return to Top of Page link in the footer just slams the browser window back to top. I happened across a pretty lightweight way to make that slicker – a little bit of JavaScript:

And a touch of PHP to the functions file:

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>