# smoothScroll

Use
import { smoothScroll } from 'util-snippets';

/**
 * Example:smoothScroll('#fooBar'); 
 * Example:smoothScroll('.fooBar');
 */

smoothScroll(id);
smoothScroll(class);
Code
const smoothScroll = element =>
  document.querySelector(element).scrollIntoView({ behavior: 'smooth' });