Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lottiefiles/lottie-player

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lottiefiles/lottie-player - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

5

package.json
{
"name": "@lottiefiles/lottie-player",
"version": "0.3.0",
"version": "0.4.0",
"description": "Lottie animation and Telegram Sticker player web components.",

@@ -23,3 +23,4 @@ "main": "dist/lottie-player.js",

"lottie-web": "^5.6.6",
"pako": "^1.0.11"
"pako": "^1.0.11",
"resize-observer-polyfill": "^1.5.1"
},

@@ -26,0 +27,0 @@ "devDependencies": {

14

README.md

@@ -28,3 +28,3 @@ ## lottie-player Web Component

```html
<script src="https://unpkg.com/@lottiefiles/lottie-player@0.2.0/dist/lottie-player.js"></script>
<script src="https://unpkg.com/@lottiefiles/lottie-player@0.4.0/dist/lottie-player.js"></script>
```

@@ -43,3 +43,3 @@

```html
<script src="https://unpkg.com/@lottiefiles/lottie-player@0.2.0/dist/tgs-player.js"></script>
<script src="https://unpkg.com/@lottiefiles/lottie-player@0.4.0/dist/tgs-player.js"></script>
```

@@ -123,3 +123,3 @@

| `mode` | `mode` | Play mode. | `PlayMode.Bounce \| PlayMode.Normal` | `PlayMode.Normal` |
| `renderer` | `renderer` | Renderer to use. | `"svg"` | `'svg'` |
| `renderer` | `renderer` | Renderer to use. | `"svg" | "canvas"` | `'svg'` |
| `speed` | `speed` | Animation speed. | `number` | `1` |

@@ -251,2 +251,10 @@ | `src` _(required)_ | `src` | Bodymovin JSON data or URL to JSON. | `string` | `undefined` |

### `resize() => void`
Resize animation stage and elements in response to changes in component.
#### Returns
Type: `void`
## Events

@@ -253,0 +261,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc