Skip to content

Conversation

@galaxystef
Copy link

@galaxystef galaxystef commented Sep 8, 2017

A little tweak that makes jscroll.js lazy load a list of many elements already inside the targeted parent element
E.G. (html code) ▼

<div class="scroll">
    <h3>Page 1</h3>
    <p>Content here...</p>
    <a href="example-page2.html">next page</a>
    <a href="example-page3.html">next page</a>
    <a href="example-page4.html">next page</a>
    <a href="example-page5.html">next page</a>
    <a href="example-page6.html">next page</a>
    etc.....
</div>

<script>$('.scroll').jscroll();</script>

A little tweak that makes jscroll.js lazy load a list of many <a> elements already inside the targeted parent element  
E.G. (html code) ▼

<div class="scroll">
    <h3>Page 1</h3>
    <p>Content here...</p>
    <a href="example-page2.html">next page</a>
    <a href="example-page3.html">next page</a>
    <a href="example-page4.html">next page</a>
    <a href="example-page5.html">next page</a>
    <a href="example-page6.html">next page</a>
    etc.....
</div>

<script>$('.scroll').jscroll();</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant