Socket
Socket
Sign inDemoInstall

@mamba/sprite

Package Overview
Dependencies
0
Maintainers
5
Versions
172
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @mamba/sprite

O componente `Sprite` ajuda na criação de animações utilizando uma _SpriteSheet_. É recomendado que se utilize este componente no lugar de arquivos `.gif` por ter um desempenho melhor.


Version published
Weekly downloads
86
Maintainers
5
Created
Weekly downloads
 

Readme

Source

Sprite

O componente Sprite ajuda na criação de animações utilizando uma SpriteSheet. É recomendado que se utilize este componente no lugar de arquivos .gif por ter um desempenho melhor.

PropriedadesDescriçãoTipoPadrão
srcCaminho para a spritesheetstringundefined
widthLargura da animaçãoint (px)undefined
heightAltura da animaçãoint (px)width

Métodos

start()

Inicia a animação do Sprite.

stop()

Pausa a animação do Sprite.

Sub componentes

LoadingSprite

import LoadingSprite from '@mamba/sprite/Loading.html';

O component LoadingSprite é um component Sprite já configurado com a animação padrão de loading do POS.

FAQs

Last updated on 13 Dec 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc