diff --git a/docs/template.html b/docs/template.html
index 90e3305..b041e9a 100644
--- a/docs/template.html
+++ b/docs/template.html
@@ -73,12 +73,12 @@ h2.sticky {
}
function onScroll() {
-
for ( var el, i = 0, l = elements.length; i < l; i++ ) {
el = elements[ i ];
var sticky = window.scrollY > el.top && window.scrollY <= el.next.top;
+
el.spacer.style.visibility = sticky ? 'visible' : 'hidden';
if ( el.next && sticky ) {
diff --git a/gui.html b/gui.html
index cb5af84..719ffbc 100644
--- a/gui.html
+++ b/gui.html
@@ -1,5 +1,5 @@
-
+