1.0.3 • Published 2 years ago

@myway42/sparkly v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.10

2 years ago

0.0.91

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.5

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago