Skip to content

Commit d4dbb6d

Browse files
author
Adam Argyle
authored
nits and cleanup after hackpack release
1 parent 0d51ac6 commit d4dbb6d

1 file changed

Lines changed: 20 additions & 9 deletions

File tree

README.md

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
<p align="center">
1+
<p style="text-align:center">
22
<a href="https://transition.style" target="_blank">
33
<img src="https://github.com/argyleink/transition.css/blob/main/app/logo.gif?raw=true" />
44
</a>
55
</p>
66

7-
[![Netlify Status](https://api.netlify.com/api/v1/badges/58d0ecf5-6241-4209-aa35-cf09983e0b37/deploy-status)](https://app.netlify.com/sites/transitions-css/deploys)
7+
<p style="text-align='center'">
8+
<img src="https://img.shields.io/npm/dt/transition.css.svg" alt="Total Downloads">
9+
<img src="https://img.shields.io/npm/v/transition.css.svg" alt="Latest Release">
10+
<img src="https://img.shields.io/npm/l/transition.css.svg" alt="License">
11+
<img src="https://api.netlify.com/api/v1/badges/58d0ecf5-6241-4209-aa35-cf09983e0b37/deploy-status" alt="Netlify Status">
12+
</p>
813

914
### Just-add-water CSS clip-path transitions
1015

@@ -16,24 +21,24 @@
1621
2. `@import "transition-style";` in your CSS or `import 'transition-style';` in your Javascript
1722

1823
**CDN**
19-
Latest at `https://unpkg.com/transition-style`
24+
**Latest** at `https://unpkg.com/transition-style`
2025

21-
Or import individual category bundles
26+
Or import **individual category bundles**
2227
- `https://unpkg.com/transition-style/transition.circles.min.css`
2328
- `https://unpkg.com/transition-style/transition.squares.min.css`
2429
- `https://unpkg.com/transition-style/transition.polygons.min.css`
2530
- `https://unpkg.com/transition-style/transition.wipes.min.css`
2631

27-
Or go slim & custom -> import the `hackpack`
32+
Or go a **slim & custom** route by importing the `hackpack`
2833
- `https://unpkg.com/transition-style/transition.hackpack.min.css`
29-
- Create a custom `@keyframe` animation with the imported custom properties.
34+
- Create a [custom](#custom) `@keyframe` animation with the imported custom properties.
3035

31-
> Custom properties ship with the `transition.min.css` as well.
36+
> Custom properties ship with each `.min.css` as well
3237
3338
<br><br>
3439

3540
#### Usage
36-
After `transition.css` has been added to your project, add an attribute to an element:
41+
After `transition.css` has been added to your project, add an attribute to an element and watch the magic:
3742

3843
```html
3944
<div transition="in:circle:bottom-right">
@@ -45,6 +50,10 @@ After `transition.css` has been added to your project, add an attribute to an el
4550
</div>
4651
```
4752

53+
> if nothing is happening when using the attributes, it's likely `transition.css` has not loaded
54+
55+
<br><br>
56+
4857
#### Custom
4958
Go off the rails and build your own transitions with the custom props that ship with the each bundle. There's even the `hackpack` which is exclusively the custom props 🤘💀
5059

@@ -74,7 +83,9 @@ Then, in the HTML:
7483
</div>
7584
```
7685

77-
- The only rule is that you must transition from the same type of shapes
86+
> The only rule is that you must transition from the same type of shapes
87+
88+
<br><br>
7889

7990
#### Play
8091
Play and experiment with [this Codepen](https://codepen.io/argyleink/pen/RwrzGJb)

0 commit comments

Comments
 (0)