@prodkt/animations 1.1.0 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE.md +1 -1
- package/README.md +6 -8
- package/package.json +2 -2
package/LICENSE.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright (c)
|
1
|
+
Copyright (c) 2022 Prodkt
|
2
2
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4
4
|
|
package/README.md
CHANGED
@@ -7,14 +7,12 @@ Your favorite [animate.css](https://animate.style/) effects available as ES modu
|
|
7
7
|
- 🚚 Works with CDNs
|
8
8
|
- 🌲 Fully tree-shakeable
|
9
9
|
|
10
|
-
[Try it on JSFiddle](https://jsfiddle.net/tovutifunk/ohjmkgb1)
|
11
|
-
|
12
10
|
This module was built for [Tovuti](https://prodkt.cloud/), but it works well as a stand-alone library too!
|
13
11
|
|
14
12
|
## Installation
|
15
13
|
|
16
14
|
```bash
|
17
|
-
npm install @
|
15
|
+
npm install @prodkt/animations
|
18
16
|
```
|
19
17
|
|
20
18
|
## Usage
|
@@ -22,19 +20,19 @@ npm install @tovutifunk/animations
|
|
22
20
|
Importing all animations:
|
23
21
|
|
24
22
|
```js
|
25
|
-
import * as animations from '@
|
23
|
+
import * as animations from '@prodkt/animations';
|
26
24
|
```
|
27
25
|
|
28
26
|
Importing individual animations:
|
29
27
|
|
30
28
|
```js
|
31
|
-
import { bounce } from '@
|
29
|
+
import { bounce } from '@prodkt/animations';
|
32
30
|
```
|
33
31
|
|
34
32
|
Importing easings:
|
35
33
|
|
36
34
|
```js
|
37
|
-
import { easings } from '@
|
35
|
+
import { easings } from '@prodkt/animations';
|
38
36
|
```
|
39
37
|
|
40
38
|
Animating an element:
|
@@ -43,7 +41,7 @@ Animating an element:
|
|
43
41
|
<div style="display: block; width: 100px; height: 100px; background: tomato; margin: 2rem;"></div>
|
44
42
|
|
45
43
|
<script type="module">
|
46
|
-
import { easings, flip } from 'https://cdn.jsdelivr.net/npm/@
|
44
|
+
import { easings, flip } from 'https://cdn.jsdelivr.net/npm/@prodkt/animations@1/dist/index.js';
|
47
45
|
|
48
46
|
const box = document.querySelector('div');
|
49
47
|
|
@@ -55,7 +53,7 @@ Animating an element:
|
|
55
53
|
</script>
|
56
54
|
```
|
57
55
|
|
58
|
-
This example uses the [jsDelivr CDN](https://www.jsdelivr.com/). To import the library locally, install it and make `node_modules/@
|
56
|
+
This example uses the [jsDelivr CDN](https://www.jsdelivr.com/). To import the library locally, install it and make `node_modules/@prodkt/animations/dist` available to your app or bundler.
|
59
57
|
|
60
58
|
## Developers
|
61
59
|
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prodkt/animations",
|
3
|
-
"description": "
|
4
|
-
"version": "1.
|
3
|
+
"description": "animate.css effects available as ES modules for use with the Web Animations API.",
|
4
|
+
"version": "1.2.4",
|
5
5
|
"homepage": "https://github.com/prodkt-cloud/animations",
|
6
6
|
"author": "Bryan Funk",
|
7
7
|
"license": "MIT",
|