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

sprite-player

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sprite-player - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "sprite-player",
"version": "1.0.0",
"version": "1.0.1",
"description": "Web component for controlling sprite sheet animations.",

@@ -5,0 +5,0 @@ "main": "docs/sprite-player.js",

@@ -30,7 +30,13 @@ # <sprite-player>

**src**: (`string`) Path to sprite image.
**frames**: (`int`) Number of frames in the animation. Defaults to `rows * cols`.
**rows**: (`int`) Number of rows in the sprite.
**cols**: (`int`) Number of columns in the sprite.
**fps**: (`Number`) Frames per second.
**autoplay**: (`Boolean`) Automatically play the animation as soon as the `src` is loaded.
**loop**: (`Boolean`) Automatically replay the animation when it ends.

@@ -43,2 +49,3 @@

**paused**: (`Boolean`) State of the animation.
**duration**: (`Number`) Duration of animation in seconds.

@@ -54,8 +61,14 @@

**play**: Sent when playback of the media starts after having been paused; that is, when playback is resumed after a prior pause event.
**playing**: Sent when the media begins to play (either for the first time, after having been paused, or after ending and then *restarting*).
**pause**: Sent when playback is paused.
**ended**: Sent when playback completes.
**loadstart**: Sent when loading of the media begins.
**load**: Sent when media is loaded.
**error**: Sent when media failed to load
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