src/components/navigation.js
// Handles scrolling to Section on Naviation Item click.
Handles scrolling to Section on Naviation Item click.
Handles scrolling to Section on Naviation Item click .
scrollTo(e) {
    e.stopPropagation();
    e.preventDefault()
    let target = e.target
    target = target.nodeName !== "A" ? target.parentElement : target;
    let sectionAnchor = target.getAttribute('href')
    if (typeof window !== 'undefined') {
      TweenMax.to(window, 1, { scrollTo: { y: sectionAnchor, offsetY: 0 } })
    }
  }
scrollTo ( e ) { e . stopPropagation ( ) ; e . preventDefault ( ) let target = e . target target = target . nodeName !== "A" ? target . parentElement : target ; let sectionAnchor = target . getAttribute ( 'href' ) if ( typeof window !== 'undefined' ) { TweenMax . to ( window , 1 , { scrollTo : { y : sectionAnchor , offsetY : 0 } } ) } }
Handles scrolling to Section on Naviation Item click.
Handles scrolling to Section on Naviation Item click .