@lottiefiles/lottie-player 1.5.6 → 1.5.7

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,20 @@ All notable changes to this project will be documented in this file.
3
3
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), enforced with [semantic-release](https://github.com/semantic-release/semantic-release).
4
4
 
5
5
 
6
+ ## [1.5.7](https://github.com/LottieFiles/lottie-player/compare/v1.5.6...v1.5.7) (2022-04-25)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **player:** add isConnected check to disconnectedCallback ([496dc8f](https://github.com/LottieFiles/lottie-player/commit/496dc8f554df392924c3aa668ac6119729afed61))
12
+
13
+ ## [1.3.1](https://github.com/LottieFiles/lottie-player/compare/v1.3.0...v1.3.1) (2022-02-22)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * fixed reversed playback, fixed bounce autoplay, updated readme with missing property ([1fa0f44](https://github.com/LottieFiles/lottie-player/commit/1fa0f4457ae00af9ae05e1ca4cb8e2cb83e3a227))
19
+
6
20
  # [1.3.0](https://github.com/LottieFiles/lottie-player/compare/v1.2.1...v1.3.0) (2021-12-16)
7
21
 
8
22
 
package/README.md CHANGED
@@ -24,7 +24,7 @@ For full documentation, visit [docs.lottiefiles.com/lottie-player](https://docs.
24
24
  - Import from CDN.
25
25
 
26
26
  ```html
27
- <script src="https://unpkg.com/@lottiefiles/lottie-player@0.4.0/dist/lottie-player.js"></script>
27
+ <script src="https://unpkg.com/@lottiefiles/lottie-player@1.5.7/dist/lottie-player.js"></script>
28
28
  ```
29
29
 
30
30
  - Import from local node_modules directory.
@@ -88,12 +88,14 @@ You may set and load animations programatically as well.
88
88
 
89
89
  ```js
90
90
  const player = document.querySelector("lottie-player");
91
- player.load("https://assets3.lottiefiles.com/packages/lf20_UJNc2t.json");
92
-
93
- // or load via a Bodymovin JSON string/object
94
- player.load(
95
- '{"v":"5.3.4","fr":30,"ip":0,"op":38,"w":315,"h":600,"nm":"new", ... }'
96
- );
91
+ player.addEventListener("rendered", (e) => {
92
+ //Load via URL
93
+ player.load("https://assets3.lottiefiles.com/packages/lf20_UJNc2t.json");
94
+ // or load via a Bodymovin JSON string/object
95
+ player.load(
96
+ '{"v":"5.3.4","fr":30,"ip":0,"op":38,"w":315,"h":600,"nm":"new", ... }'
97
+ );
98
+ });
97
99
  ```
98
100
 
99
101
  ### TGS-Player
@@ -242,7 +244,6 @@ declare namespace JSX {
242
244
 
243
245
  Full documentation on player properties, methods, events and styling for the Lottie-player are available [here](https://docs.lottiefiles.com/lottie-player).
244
246
 
245
-
246
247
  ## Community & Support
247
248
 
248
249
  - [Github issues.](https://github.com/LottieFiles/lottie-player/issues) For bugs and errors you encounter using this player.
@@ -311,7 +312,6 @@ Full documentation on player properties, methods, events and styling for the Lot
311
312
  </td>
312
313
  </tr>
313
314
 
314
-
315
315
  </table>
316
316
 
317
317
  ## License
@@ -1 +1 @@
1
- {"version":3,"file":"lottie-player.d.ts","sourceRoot":"","sources":["../src/lottie-player.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAEvC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAO7C,oBAAY,WAAW;IACrB,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAGD,oBAAY,QAAQ;IAClB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAGD,oBAAY,YAAY;IACtB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd;A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