This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<header id="header" className="fixed-top"> | |
<nav className="navbar navbar-expand-lg navbar-dark "> | |
<div className="container"> | |
<a href="#" className="navbar-brand">BVM Corp</a> | |
<button | |
className="navbar-toggler" | |
type="button" | |
data-toggle="collapse" | |
data-target="#navContent" | |
aria-controls="navContent" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function($) { | |
$('nav').on('click', function() { | |
if ($(this).hasClass('down')) { | |
var movePos = $(window).scrollTop() + $(window).height(); | |
} | |
if ($(this).hasClass('top')) { | |
var movePos = $(window).scrollTop() - $(window).height(); | |
} | |
$('html, body').animate({ | |
scrollTop: movePos}, 600); |