Skip to content

Commit

Permalink
Changed default data-url value to false
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Ferdinandi committed Dec 31, 2013
1 parent 300b684 commit 2b1f96a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
26 changes: 13 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,31 +19,31 @@ <h1 style="text-align: center; font-size: 3em;">Smooth Scroll</h1>

<p>
<strong>Linear</strong><br>
<a class="scroll" data-speed="2000" data-easing="linear" href="#bazinga">Linear (no other options)</a><br>
<a class="scroll" data-speed="2000" data-easing="linear" data-url="true" href="#bazinga">Linear (no other options)</a><br>
</p>

<p>
<strong>Ease-In</strong><br>
<a class="scroll" data-speed="2000" data-easing="easeInQuad" href="#bazinga">Quad</a><br>
<a class="scroll" data-speed="2000" data-easing="easeInCubic" href="#bazinga">Cubic</a><br>
<a class="scroll" data-speed="2000" data-easing="easeInQuart" href="#bazinga">Quart</a><br>
<a class="scroll" data-speed="2000" data-easing="easeInQuint" href="#bazinga">Quint</a>
<a class="scroll" data-speed="2000" data-easing="easeInQuad" data-url="true" href="#bazinga">Quad</a><br>
<a class="scroll" data-speed="2000" data-easing="easeInCubic" data-url="true" href="#bazinga">Cubic</a><br>
<a class="scroll" data-speed="2000" data-easing="easeInQuart" data-url="true" href="#bazinga">Quart</a><br>
<a class="scroll" data-speed="2000" data-easing="easeInQuint" data-url="true" href="#bazinga">Quint</a>
</p>

<p>
<strong>Ease-In-Out</strong><br>
<a class="scroll" data-speed="2000" data-easing="easeInOutQuad" href="#bazinga">Quad</a><br>
<a class="scroll" data-speed="2000" data-easing="easeInOutCubic" href="#bazinga">Cubic</a><br>
<a class="scroll" data-speed="2000" data-easing="easeInOutQuart" href="#bazinga">Quart</a><br>
<a class="scroll" data-speed="2000" data-easing="easeInOutQuint" href="#bazinga">Quint</a>
<a class="scroll" data-speed="2000" data-easing="easeInOutQuad" data-url="true" href="#bazinga">Quad</a><br>
<a class="scroll" data-speed="2000" data-easing="easeInOutCubic" data-url="true" href="#bazinga">Cubic</a><br>
<a class="scroll" data-speed="2000" data-easing="easeInOutQuart" data-url="true" href="#bazinga">Quart</a><br>
<a class="scroll" data-speed="2000" data-easing="easeInOutQuint" data-url="true" href="#bazinga">Quint</a>
</p>

<p>
<strong>Ease-Out</strong><br>
<a class="scroll" data-speed="2000" data-easing="easeOutQuad" href="#bazinga">Quad</a><br>
<a class="scroll" data-speed="2000" data-easing="easeOutCubic" href="#bazinga">Cubic</a><br>
<a class="scroll" data-speed="2000" data-easing="easeOutQuart" href="#bazinga">Quart</a><br>
<a class="scroll" data-speed="2000" data-easing="easeOutQuint" href="#bazinga">Quint</a>
<a class="scroll" data-speed="2000" data-easing="easeOutQuad" data-url="true" href="#bazinga">Quad</a><br>
<a class="scroll" data-speed="2000" data-easing="easeOutCubic" data-url="true" href="#bazinga">Cubic</a><br>
<a class="scroll" data-speed="2000" data-easing="easeOutQuart" data-url="true" href="#bazinga">Quart</a><br>
<a class="scroll" data-speed="2000" data-easing="easeOutQuint" data-url="true" href="#bazinga">Quint</a>
</p>

<p>
Expand Down
2 changes: 1 addition & 1 deletion smooth-scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
// If the anchor exists
if (dataTarget) {
// Scroll to the anchor
smoothScroll(dataTarget, dataSpeed || 500, dataEasing || 'easeInOutCubic', dataURL || 'true');
smoothScroll(dataTarget, dataSpeed || 500, dataEasing || 'easeInOutCubic', dataURL || 'false');
}

}, false);
Expand Down

0 comments on commit 2b1f96a

Please sign in to comment.