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.5.0 to 0.5.1

2

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

@@ -5,0 +5,0 @@ "main": "dist/lottie-player.js",

@@ -111,15 +111,16 @@ ## lottie-player Web Component

| Property | Attribute | Description | Type | Default |
| ------------------ | ------------ | ----------------------------------- | ------------------------------------ | ----------------- |
| `autoplay` | `autoplay` | Autoplay animation on load. | `boolean` | `false` |
| `background` | `background` | Background color. | `string` | `undefined` |
| `controls` | `controls` | Show controls. | `boolean` | `false` |
| `count` | `count` | Number of times to loop animation. | `number` | `undefined` |
| `direction` | `direction` | Direction of animation. | `number` | `1` |
| `hover` | `hover` | Whether to play on mouse hover. | `boolean` | `false` |
| `loop` | `loop` | Whether to loop animation. | `boolean` | `false` |
| `mode` | `mode` | Play mode. | `PlayMode.Bounce \| PlayMode.Normal` | `PlayMode.Normal` |
| `renderer` | `renderer` | Renderer to use. | `"svg" | "canvas"` | `'svg'` |
| `speed` | `speed` | Animation speed. | `number` | `1` |
| `src` _(required)_ | `src` | Bodymovin JSON data or URL to JSON. | `string` | `undefined` |
| Property | Attribute | Description | Type | Default |
| --------------------- | --------------------- | ----------------------------------- | ------------------------------------ | ----------------- |
| `autoplay` | `autoplay` | Autoplay animation on load. | `boolean` | `false` |
| `background` | `background` | Background color. | `string` | `undefined` |
| `controls` | `controls` | Show controls. | `boolean` | `false` |
| `count` | `count` | Number of times to loop animation. | `number` | `undefined` |
| `direction` | `direction` | Direction of animation. | `number` | `1` |
| `hover` | `hover` | Whether to play on mouse hover. | `boolean` | `false` |
| `loop` | `loop` | Whether to loop animation. | `boolean` | `false` |
| `mode` | `mode` | Play mode. | `PlayMode.Bounce \| PlayMode.Normal` | `PlayMode.Normal` |
| `preserveAspectRatio` | `preserveAspectRatio` | Valid preserve aspect ratio value. | `string` | `'xMidYMid meet'` |
| `renderer` | `renderer` | Renderer to use. | `"svg" | "canvas"` | `'svg'` |
| `speed` | `speed` | Animation speed. | `number` | `1` |
| `src` _(required)_ | `src` | Bodymovin JSON data or URL to JSON. | `string` | `undefined` |

@@ -126,0 +127,0 @@ ## Methods

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