We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ae3d47 commit 8b135b9Copy full SHA for 8b135b9
assets/js/script.js
@@ -24,20 +24,21 @@
24
25
var headerWaypoint = new Waypoint({
26
element: document.getElementById('masthead'),
27
- offset: -5,
28
handler: function (direction) {
29
if (direction === 'down')
30
this.element.classList.remove('animation-on');
31
else
32
this.element.classList.add('animation-on');
33
- }
+ },
+ offset: -5
34
});
35
36
var footerWaypoint = new Waypoint({
37
element: document.getElementById('footer'),
38
39
this.element.classList.toggle('animation-on');
40
41
+ offset: 'bottom-in-view'
42
43
44
}
0 commit comments