<pclass="component-description">Sliders.js binds an event to the document that returns a detail object and can be used to fire a callback.</p>
<pclass="component-description">Sliders.js binds an event to the document that returns a detail object and can be used to fire a callback.</p>
{% highlight js %}
// Only needed if you want to fire a callback
@ -978,44 +979,44 @@ document
.addEventListener('slide', myFunction)
{% endhighlight %}
</article>
</article>
<!-- Push docs -->
<articleclass="component"id="push">
<h3class="component-title">Push</h3>
<pclass="component-description">Push.js is the engine that connects Ratchet pages together with AJAX and the history api. Push.js is listening to all clicks on a page, so just make sure it's included and link something in your Ratchet project up.</p>
<!-- Push docs -->
<articleclass="component"id="push">
<h3class="component-title">Push</h3>
<pclass="component-description">Push.js is the engine that connects Ratchet pages together with AJAX and the history api. Push.js is listening to all clicks on a page, so just make sure it's included and link something in your Ratchet project up.</p>
{% highlight html %}
<!-- A one.html link -->
<ahref="two.html">Two</a>
{% endhighlight %}
<pclass="component-note">This will use push to replace everything in the .content div with the .content of two.html. Also, it will either update or remove .bar-nav and .bar-tab according to their presences in two.html.</p>
<pclass="component-note">This will use push to replace everything in the .content div with the .content of two.html. Also, it will either update or remove .bar-nav and .bar-tab according to their presences in two.html.</p>
<pclass="component-description">Now that pages are being loaded through push, it's easy to specify transitions for animations between pages. There are three different transitions to chose from: <code>fade</code>, <code>slide-in</code>, or <code>slide-out</code>.</p>
<pclass="component-description">Now that pages are being loaded through push, it's easy to specify transitions for animations between pages. There are three different transitions to chose from: <code>fade</code>, <code>slide-in</code>, or <code>slide-out</code>.</p>
{% highlight html %}
<!-- An one.html link that animates to two.html -->
<ahref="two.html"data-transition="fade">Two</a>
{% endhighlight %}
<pclass="component-description">A working version of push:</p>
<pclass="component-description">A working version of push:</p>