1.0.3 • Published 1 year ago

@myway42/sparkly v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Published on webcomponents.org NPM Version

\

Easily start.

<sparkly-view>hello world</sparkly-view>

Live Demo

Description

This is a custom element that allows you to add sparkly animation to the textbuttonimg and so on.

Installation

npm install @myway42/sparkly

then import

import '@myway42/sparkly'

Or

import Sparkly from '@myway42/sparkly/dist/component.js'

// same as previously
Sparkly.register()

// registering as a different tag-name:
Sparkly.register('nice-sparkly')

Or grab from unpkg.com CDN:

<script src="https://unpkg.com/@myway42/sparkly" type="module"></script>

Usage

<sparkly-view canclick="true" color="red" minsize="12" maxsize="24">hello world</sparkly-view>

Attributes

NametypedefaultDescription
canclickbooleanfalseWhether the Sparkly can be click to hide/show
colorstring#FFC700Sparkle color
minsizenumber10Sparkle min size
maxsizenumber20Sparkle max size
1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.12

1 year ago

0.0.13

1 year ago

0.0.10

1 year ago

0.0.91

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.5

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago