Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jscroll.js - Multiple Links lazy-loading #139

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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