0.0.2 • Published 4 years ago

@agm-dev/party-parrot-component v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Built With Stencil

Stencil <party-parrot></party-parrot>

Stencil component which allows to include <party-parrot /> component in your applications.

Features

  • Animation duration can be modified by using a range selector which is visible after clicking the parrot.
  • The selected value will be stored on local storage individually for each parrot if the storageId is set and unique.
  • The duration selector will hide itself rangeSelectorExpiration milliseconds after being used. Or you can click the parrot again to hide it.

Install

Add the package:

npm i -s @agm-dev/party-parrot-component

Usage

<party-parrot
  storageId="partyparrot01"
  minRange={200}
  maxRange={2000}
  rangeSelectorExpiration={3000}
></party-parrot>

Props

keytyperequireddefaultdescription
storageIdstringNO-Enables storage of animation duration value for this parrot.
minRangenumberNO200The min value for duration selector.
maxRangenumberNO2000The max value for duration selector.
rangeSelectorExpirationnumberNO3000The milliseconds that the duration selector will remain visible after being used.