UNPKG

intercooler

Version:

Making AJAX as easy as anchor tags

29 lines (19 loc) 790 B
--- layout: default nav: attributes > ic-scroll-to-target --- <div class="container"> <div class="row"> <div class="col-md-12"> <h2><code>ic-scroll-to-target</code> - The Scroll To Target Attribute</h2> <h3>Summary</h3> <p>The <code>ic-scroll-to-target</code> attribute tells Intercooler to scroll the top of the target element into the viewport, if it is not visible. This can be paired with the <code>ic-scroll-offset</code> attribute to fine tune exactly what position is scrolled to.</p> <h3>Syntax</h3> <p>The value of this attribute can be either <code>true</code> or <code>false</code></p> <h3>Dependencies</h3> <p><code>ic-scroll-to-target</code> has no dependency implications.</p> </div> </div> </div>