lottie-helper 1.0.7 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/lottie.help.js +1 -1
- package/package.json +1 -1
- package/readme.md +32 -19
package/bin/lottie.help.js
CHANGED
package/package.json
CHANGED
package/readme.md
CHANGED
@@ -4,49 +4,62 @@
|
|
4
4
|
|
5
5
|
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
> The follow-up docking ecological page will be provided to you later, so stay tuned...
|
7
|
+
## 教程
|
8
|
+
|
9
|
+
只需在你的 HTML 同级目录,执行如下命令:
|
11
10
|
|
11
|
+
```shell
|
12
|
+
npx lottie-helper lohelp
|
13
|
+
```
|
12
14
|
|
15
|
+
即可为你的 HTML 添加首屏 Lottie 动画!
|
13
16
|
|
14
17
|
|
15
18
|
|
16
|
-
> 警告.⛔
|
17
|
-
>
|
18
|
-
> 主版本处于实验阶段,暂时无法使用。
|
19
|
-
>
|
20
|
-
> 后续对接生态页面稍后提供给大家,敬请期待……
|
21
19
|
|
22
20
|
|
21
|
+
## 资源
|
23
22
|
|
23
|
+
[Lottie-Park](https://callbackhell.xyz/lottie-park/), 提供了丰富的自定义动画类型 [持续更新中...] ,一键复制,粘贴在命令中即可!
|
24
24
|
|
25
|
+
[Lottie-park访问地址](https://callbackhell.xyz/lottie-park/)
|
25
26
|
|
26
|
-
## 教程
|
27
27
|
|
28
|
-
1. 全局安装
|
29
28
|
|
30
|
-
|
29
|
+
**资源使用示例:**
|
30
|
+
|
31
|
+
> /lottie-json/118336-please-wait.json是从 Lottie-Park 中复制的<lottie-JSON-URL>
|
32
|
+
|
33
|
+
```shell
|
34
|
+
npx lottie-helper lohelp -j /lottie-json/118336-please-wait.json
|
35
|
+
```
|
36
|
+
|
37
|
+
|
31
38
|
|
32
|
-
2. 在任意项目中根目录执行命令(HTML文件同级),给你的HTML自动加入首屏动画!
|
33
39
|
|
34
|
-
`lohelp`
|
35
40
|
|
36
41
|
|
37
42
|
|
38
43
|
## 配置
|
39
44
|
|
40
|
-
|
41
|
-
|
42
|
-
|
45
|
+
一键自定义想要的 Lottie 动画内容!
|
46
|
+
|
47
|
+
> 自定义的动画资源可在如下 【资源】标题中查找。
|
48
|
+
|
49
|
+
- `-j`
|
50
|
+
|
51
|
+
可自定义插入的 Lottie 动画类型
|
52
|
+
|
53
|
+
```shell
|
54
|
+
npx lottie-helper lohelp -j <lottie-JSON-URL>
|
55
|
+
```
|
56
|
+
|
43
57
|
|
44
58
|
|
45
59
|
|
46
60
|
|
47
61
|
|
48
|
-
##
|
62
|
+
## TODO
|
49
63
|
|
50
|
-
- 支持参数,可选动画
|
51
64
|
- inquirer,控制台箭头操作,常用交互式命令行用户界面的集合。
|
52
65
|
|