An interactive HTML CSS JavaScript project that transforms text into animated particles which respond to mouse interactions. This showcases creative coding skills, animation handling, and DOM-canvas integration.
-
Customizable text and particle colors
-
Smooth particle motion with mouse interaction
-
Fully responsive and lightweight
-
Pure HTML CSS JS with no external libraries
🔗 Live Demo: Interactive Particle Text Animation
project/
│── index.html # Main HTML file
│── style.css # Styling for layout and text
│── script.js # Animation logic
-
Canvas Rendering -- Text is drawn on a hidden canvas to capture pixel data.
-
Particle Generation -- Each pixel is converted into a particle object with its own position and velocity.
-
Interaction -- Mouse movement alters particle positions, creating a ripple-like effect.
-
Animation Loop -- The particles are continuously redrawn using
requestAnimationFrame
for smooth performance.
-
Clone the repository:
git clone https://github.com/YakshTechs/3DParticles.git
-
Open
index.html
in your browser. -
Move your mouse around and watch the particles react.
-
Change text in
script.js
:const displayText = "YAKSH DEVANI";
-
Adjust colors in
style.css
orscript.js
. -
Modify particle size and speed for different effects.
-
Canvas API manipulation
-
JavaScript animation techniques
-
Event handling for interactivity
-
Creative UI/UX micro-interactions
-
Optimizing rendering performance
This project is open-source and available under the MIT License.