Skip to content

Commit da4fe02

Browse files
authored
Create README.md
1 parent b3c6d81 commit da4fe02

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# impression
2+
A dropin simple and minimalist html page preloader library
3+
4+
## Getting Started
5+
6+
You can download the latest dist here.
7+
8+
9+
- Innclude the impression css file in your head
10+
11+
```
12+
13+
<link rel="stylesheet" href="path/to/impression/impression.css">
14+
15+
```
16+
17+
18+
19+
- Just before the close of your body tag , include the impression js file
20+
21+
```
22+
23+
<script src="path/to/impression/impression.js"></script>
24+
25+
```
26+
27+
28+
- At the start of your html body put the following markup
29+
30+
```
31+
<div id="loader">
32+
<div id="loader-default">
33+
</div>
34+
</div>
35+
```
36+
37+
38+
## Loader Styles
39+
40+
Currently the small lib supports 2 loader styles
41+
42+
- default #loader-default
43+
- infinity #loader-infinity

0 commit comments

Comments
 (0)