1.1.47 • Published 5 months ago

slick-loader v1.1.47

Weekly downloads
115
License
MIT
Repository
github
Last release
5 months ago

Slick Loader

A slick loader to use during your AJAX calls or data processing

Loader demo

Doc

  • Installation

Simply import slick-loader into your HTML.

<link rel="stylesheet" type="text/css" href="https://unpkg.com/slick-loader@1.1.20/slick-loader.min.css">
<script src="https://unpkg.com/slick-loader@1.1.20/slick-loader.min.js"></script>	
  • Documentation

See the offical documentation for more in-depth informations.

  • How to use

You can either use the default SlickLoader or create a new Slickloader(target) to target your loading more precisely.

SlickLoader.enable();
...
SlickLoader.disable();
// OR
let customLoader = new Slickloader().enable()
...
customLoader.disable();
  • Methods
SlickLoader.enable(); // Displays the loader

SlickLoader.disable(); // Hides the loader

SlickLoader.setText(line1, line2); // Sets two text lines at the center of the loader

SlickLoader.clearText(); // Removes the text

SlickLoader.destroy(selector); // Removes the SlickLoader
  • Example

See this JSFiddle for a working example

Authors

1.1.47

5 months ago

1.1.38

4 years ago

1.1.37

4 years ago

1.1.36

4 years ago

1.1.34

4 years ago

1.1.32

4 years ago

1.1.31

4 years ago

1.1.35

4 years ago

1.1.25

4 years ago

1.1.24

5 years ago

1.1.21

6 years ago

1.1.20

6 years ago

1.1.12

6 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago