Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/prinorange/firework-canvas

This project provides two script files and a Canvas component, and gives examples. When inserted into HTML, the dynamic effect of fireworks exploding will pop up when the page is clicked.
https://github.com/prinorange/firework-canvas

canvas canvas2d canvasjs html html5 javascript

Last synced: about 11 hours ago
JSON representation

This project provides two script files and a Canvas component, and gives examples. When inserted into HTML, the dynamic effect of fireworks exploding will pop up when the page is clicked.

Awesome Lists containing this project

README

        

# HTML Firework Explosion Animation

## Preview



This project provides two script files and a Canvas component, along with examples. By inserting them into your HTML, you can achieve a dynamic effect of fireworks exploding when clicking on the page.

## How to Test

Please place this directory under an **HTTP server environment**. Then, access the `index.html` file. Do not open `index.html` directly, as the browser cannot load JavaScript files in the file environment.

I recommend using the `http-server` tool. Here's how to do it:

First, install it:

```bash
npm install http-server -g
```

Then, execute the following command in this directory:

```bash
http-server
```

You can preview it in the link provided in the console.

> The project materials are from the internet, and the original information is somewhat chaotic, so I have made some preliminary organization.
> [The original material link is here.](https://blog.csdn.net/renjingzhaozhao/article/details/105795403)