Line 29: | Line 29: | ||
text-decoration: none; | text-decoration: none; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
Line 118: | Line 108: | ||
− | <div class=" | + | <div class="whole-div"> |
<div class="container"> | <div class="container"> | ||
<body data-spy="scroll" data-target=".navbar" data-offset="50"> | <body data-spy="scroll" data-target=".navbar" data-offset="50"> | ||
Line 181: | Line 171: | ||
</ul> | </ul> | ||
</div> | </div> | ||
+ | |||
+ | <script> | ||
+ | $(document).ready(function() { | ||
+ | $('.navbar-nav a').mouseenter(function() { | ||
+ | var sectionTo = $(this).attr('href'); | ||
+ | $('html, body').animate({ | ||
+ | scrollTop: $(sectionTo).offset().top | ||
+ | }, 3000); | ||
+ | }); | ||
+ | }); | ||
+ | |||
+ | |||
+ | |||
+ | </script> | ||
+ | |||
+ | |||
+ | |||
<script> | <script> |
Revision as of 12:16, 17 August 2017