Slick Content Loader With Vanilla JavaScript – slick-loader

Category: Javascript , Loading | July 11, 2021
Author:Zenoo
Views Total:1,942 views
Official Page:Go to website
Last Update:July 11, 2021
License:MIT

Preview:

Slick Content Loader With Vanilla JavaScript – slick-loader

Description:

slick-loader is a small and developer-friendly content loader JavaScript library for the web.

How to use it:

1. Import the slick-loader’s JavaScript and CSS files.

<link rel="stylesheet" href="slick-loader.min.css" />
<script src="slick-loader.min.js"></script>

2. Show the loader when needed (e.g. ajax requests, data processing).

SlickLoader.enable();

3. Disable the loader.

SlickLoader.disable();

4. Set/clear the loading text if needed.

SlickLoader.setText('CSSScript','Content Loading...');
SlickLoader.clearText();

5. Destroy the instance.

SlickLoader.destroy(selector);

Changelog:

v1.1.36/37/38 (07/11/2021)

  • Bug Fixes

v1.1.35 (06/16/2021)

  • Bug Fixes

You Might Be Interested In:


Leave a Reply