mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 18:15:31 +00:00
feat: add optional .js-scroll class for smooth anchor scrolling
This commit is contained in:
1 parent
35287c2391
commit
be8cae3a1f
1 file changed
+1
-1
@@ -72,7 +72,7 @@
|
||||
* Add smooth scrolling to all links inside the main navbar.
|
||||
* --------------------------------------------------------------------------- */
|
||||
|
||||
$('#navbar-main li.nav-item a.nav-link').on('click', function (event) {
|
||||
$('#navbar-main li.nav-item a.nav-link, .js-scroll').on('click', function (event) {
|
||||
// Store requested URL hash.
|
||||
let hash = this.hash;
|
||||
|
||||
|
||||
Reference in new issue
Block a user