# smoothScroll
Useimport { smoothScroll } from 'util-snippets';
/**
* Example:smoothScroll('#fooBar');
* Example:smoothScroll('.fooBar');
*/
smoothScroll(id);
smoothScroll(class);
const smoothScroll = element =>
document.querySelector(element).scrollIntoView({ behavior: 'smooth' });