JavaScript Library For Maintaining Scroll Position When Images Loaded – Scrollbear

Category: Javascript , Recommended | April 19, 2016
Authorchangbenny
Last UpdateApril 19, 2016
LicenseMIT
Views325 views
JavaScript Library For Maintaining Scroll Position When Images Loaded – Scrollbear

Scrollbear is a small yet useful JavaScript library for maintaining scroll position to prevent page content jumping when loading images.

How to use it:

Download and insert the scrollbear.js into your webpage.

<script src='scrollbear.js'></script>

Active the Scrollbear on a specific container. That’s it.

Scrollbear.start(document.querySelector('#container'))

You Might Be Interested In:


Leave a Reply