Skip to content

abulgit/Animation-in-JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Animation-in-JS

This is a simple particle explosion animation project using JavaScript and HTML5 canvas. I Create this project on the Task of MLH Global Hack Week(GHW).

Description

The animation displays a canvas with the text "Click anywhere in the box" at the center. When you click on the canvas, a burst of colorful particles will explode from the clicked position.

How to Use

  1. Clone the repository:

git clone [https://github.com/your-username/particle-explosion-animation.git]

  1. Open the index.html file in your web browser.

  2. Click anywhere inside the canvas to trigger the particle explosion animation.

Customization

You can customize the animation by adjusting the following parameters in the animation.js file:

  • numParticles: The number of particles in the explosion.
  • colors: An array of colors from which particles are randomly selected.

Feel free to experiment and modify the code to create your own unique animations!

Acknowledgments

Special thanks to the creators of the tutorials and resources that helped in creating this animation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published