Skip to content

Commit 1d7762d

Browse files
committed
update README for usage and installation
1 parent a18ca16 commit 1d7762d

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,28 @@
33
Stateful CSS animation.
44

55

6+
## Installation
7+
8+
download and include [state.css](https://raw.githubusercontent.com/loadingio/state.css/v0.0.1/dist/state.min.css):
9+
10+
```
11+
<link rel="stylesheet" type="text/css" href="state.min.css"/>
12+
```
13+
14+
you an use a CDN, such as, from jsDelivr:
15+
16+
```
17+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/loadingio/state.css@v0.0.1/dist/state.min.css"/>
18+
```
19+
20+
21+
## Usage
22+
23+
Add CSS class of desired state to your DOM element, along with additional `ld` class. Currently we only implement one animation ( ld-flip-ltr ):
24+
25+
<div class="ld ld-flip-ltr"> ... ( your content ) ... </div>
26+
27+
628
## LICENSE
729

830
MIT License

0 commit comments

Comments
 (0)