Skip to content

Commit 8b135b9

Browse files
author
Matija Čupić
committed
Fixed footer not animating
1 parent 8ae3d47 commit 8b135b9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

assets/js/script.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,21 @@
2424

2525
var headerWaypoint = new Waypoint({
2626
element: document.getElementById('masthead'),
27-
offset: -5,
2827
handler: function (direction) {
2928
if (direction === 'down')
3029
this.element.classList.remove('animation-on');
3130
else
3231
this.element.classList.add('animation-on');
33-
}
32+
},
33+
offset: -5
3434
});
3535

3636
var footerWaypoint = new Waypoint({
3737
element: document.getElementById('footer'),
3838
handler: function (direction) {
3939
this.element.classList.toggle('animation-on');
40-
}
40+
},
41+
offset: 'bottom-in-view'
4142
});
4243

4344
}

0 commit comments

Comments
 (0)