Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@fireworks-js/svelte

Package Overview
Dependencies
Maintainers
0
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fireworks-js/svelte

A simple fireworks library!

latest
Source
npmnpm
Version
2.10.8
Version published
Weekly downloads
35
75%
Maintainers
0
Weekly downloads
 
Created
Source

@fireworks-js/svelte

https://github.com/crashmax-dev/fireworks-js

Installation

npm install @fireworks-js/svelte

Usage

fireworks-js

<script lang="ts">
  import { Fireworks } from '@fireworks-js/svelte'
  import type { FireworksOptions } from '@fireworks-js/svelte'

  let fw: Fireworks
  let options: FireworksOptions = {
    opacity: 0.5
  }

  function toggleFireworks() {
    const fireworks = fw.fireworksInstance()
    if (fireworks.isRunning) {
      fireworks.waitStop()
    } else {
      fireworks.start()
    }
  }
</script>
<Fireworks bind:this={fw} autostart={false} {options} class="fireworks" />

Keywords

svelte

FAQs

Package last updated on 13 Jul 2024

Did you know?

Socket

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