Skip to content

Instantly share code, notes, and snippets.

View tyleryoungblood's full-sized avatar

Tyler Youngblood tyleryoungblood

  • Front End Developer, Richland Library | Lead Developer, REsimplifi.com | Former Computer Science Faculty, Highline.edu
  • Columbia SC
View GitHub Profile
@tyleryoungblood
tyleryoungblood / animatedScrollTo.js
Created May 1, 2019 19:35 — forked from felipenmoura/animatedScrollTo.js
ScrollTo animation using pure javascript and no jquery
/**
* Will gracefuly scroll the page
* This function will scroll the page using
* an `ease-in-out` effect.
*
* You can use it to scroll to a given element, as well.
* To do so, pass the element instead of a number as the position.
* Optionally, you can pass a `queryString` for an element selector.
*
* The default duration is half a second (500ms)