Skip to content

Commit b0dddcd

Browse files
author
jordanmccullough
committed
Add scroll snap support
1 parent 6dd01e0 commit b0dddcd

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

_javascript/curriculum.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ $(function(){
22

33
buildToc();
44

5+
$(document).scrollsnap({
6+
snaps: 'section',
7+
proximity: 250
8+
});
9+
510
function buildToc(){
611
var headings = $("h3"),
712
toc = $("#toc-list");

_javascript/jquery-scrollsnap-plugin

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 30d0597808767c26d876f35f3aa6cf8282d7aa4a

0 commit comments

Comments
 (0)