Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

firework animation javascript

# with npm:
npm install fireworks-js

# or yarn:
yarn add fireworks-js

import { Fireworks } from 'fireworks-js'

const container = document.querySelector('.fireworks-container')
const fireworks = new Fireworks(container, { /* options */ })

fireworks.start()
fireworks.pause()
fireworks.clear()

// stop and clear fireworks
fireworks.stop()

// after initialization you can change the fireworks parameters
fireworks.setOptions({ delay: { min: 10, max: 15 }})
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to play music in js 
Javascript :: access url query string from javascript 
Javascript :: gatsby-plugin-create-client-paths 
Javascript :: Get the value of selected radio button 
Javascript :: define keyframes with javascript 
Javascript :: placeholder in angular 9 select with working required 
Javascript :: javascript only allow show first few characters from a string 
Javascript :: date to seconds js 
Javascript :: deploy react app netlify 
Javascript :: Access data out of Axios .then vue.js 
Javascript :: counting duplicates codewars javascript 
Javascript :: how to start json server 
Javascript :: veu scroll to top 
Javascript :: animate flash jQuery 
Javascript :: network response timed out expo 
Javascript :: datatable visable show entries 
Javascript :: javascript prepend string to array 
Javascript :: console log returns object object 
Javascript :: queryselector aria-label 
Javascript :: read file javascript 
Javascript :: js replace all spaces 
Javascript :: javascript check date greater than today 
Javascript :: mongoose connect to URL of atlas 
Javascript :: javascript location redirect 
Javascript :: display none javascript 
Javascript :: string to pascal case 
Javascript :: javascript line break 
Javascript :: how to find factorial of a number using Recursion in javascript 
Javascript :: Days remaining using moment 
Javascript :: show hide boxes using radio button selection jquery 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =