JavaScript Library For Maintaining Scroll Position When Images Loaded – Scrollbear

Category: Javascript , Recommended | April 19, 2016
Author:changbenny
Views Total:316 views
Official Page:Go to website
Last Update:April 19, 2016
License:MIT

Preview:

JavaScript Library For Maintaining Scroll Position When Images Loaded – Scrollbear

Description:

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