1.0.0 β€’ Published 5 years ago

fancy-button v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

fancy-button

Glitch Button with sprinkles added on top ✨

Uses lit-html, haunted, and rollup.js

πŸ›‘ Hey!

This project is experimental. It doesn't work in Edge and IE.

πŸ€” How to Use

πŸ“¦ Install via NPM

Add fancy-button package to your package.json

Import it

import 'fancy-button';

Include the component!

<glitch-button top-right></glitch-button>

πŸ”– Script Tag

Include this in your head tag:

<script src="https://unpkg.com/fancy-button" defer></script>

Include in the end of your body tag:

<glitch-button top-right></glitch-button>

πŸ›  Available Attributes

  1. top-right places the button in top right corner.
  2. theme="glitch" loads Glitch stylesheet.

βœ… Why better-button?

buttonbetter-button
Lighter🐌 45.8 KB total (including images and styles)⚑ 7.9 KB (brotli)
EncapsulatedπŸ™€ Your styles can mess with the button🎈 Safe to use in any page
Cached⏳ Doesn’t use cache⏱ Cache enabled
Accessible⚠ Could be more accessible❀ Everyone can play!

😳 Made by Ruslan Egorov

1.0.0

5 years ago

0.0.1

6 years ago