We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1abdba commit 09f21fbCopy full SHA for 09f21fb
wiki.js
@@ -22,4 +22,16 @@ $('#split-bar').mousedown(function (e) {
22
});
23
$(document).mouseup(function (e) {
24
$(document).unbind('mousemove');
25
+});
26
+
27
+// animating scroll behavior of anchor links
28
29
+document.querySelectorAll('a[href^="#"]').forEach(anchor => {
30
+ anchor.addEventListener('click', function (e) {
31
+ e.preventDefault();
32
33
+ document.querySelector(this.getAttribute('href')).scrollIntoView({
34
+ behavior: 'smooth'
35
+ });
36
37
0 commit comments