Free Open Source Particles JS v1.0.0

A simple, customizable particle system for web backgrounds, effects, and interactions. Multiple particle types, three animation modes, and performance optimizations. Perfect for adding life to any website.

Particles That Pop. Backgrounds That Breathe.

Particles JS brings your website to life with smooth, customizable particle animations. Choose from multiple visual styles—circles, stars, confetti, triangles, images, or emojis—and three animation modes: floating flow, falling rain, or explosive fireworks. Lightweight, performant, and easy to configure.

Free Open Source Particles JS v1.0.0

Key Features

  • Multiple Particle Types — circle, star, confetti, triangle, image, emoji.
  • Three Animation Modes — flow (floating), rain (falling), firework (bursts).
  • Mouse Interaction — particles repel or react to mouse movement.
  • Connect Particles — draw lines between nearby particles.
  • Trails & Effects — optional trails on bursts and fireworks.
  • Performance Optimized — viewport culling, shape caching, throttled drawing.
  • Responsive — auto-resizes with window.
  • Customizable Colors — rainbow mode or custom color palette.

Installation

Important: If you're fetching the script from a remote location, include integrity and crossorigin="anonymous" to ensure security and prevent tampering.

<script 
src="https://opensource.josebamirena.com/particles/1.0.0/dist/particles.min.js"
integrity="sha384-ovQETGtGwaVATmqCOoMNIo1bur9NDv5+pG2BzxOqa5/M7BvYh3XhYjG607gXu/7D"
crossorigin="anonymous">
</script>

Basic HTML Setup

<div id="particles-container" aria-hidden="true"></div>

Basic CSS Styling

#particles-container {
position: absolute;
inset: 0;
z-index: 1;
overflow: hidden;
}

#particles-container canvas {
pointer-events: auto;
display: block;
width: 100%;
height: 100%;
}

Basic Initialization

<script>
Particles.init({
container: 'particles-container',
type: 'circle',
mode: 'flow',
count: 120,
sizeMin: 4,
sizeMax: 12,
opacity: 0.8,
gravity: 0.05,
backgroundParticles: true,
trails: false
});
</script>

Configuration Options

OptionTypeDefaultDescription
containerstring'particles-container'Particles renderization container ID
typestring'circle''circle', 'star', 'confetti', 'triangle', 'image', 'emoji'
modestring'flow''flow', 'rain', 'firework'
imageUrlstring/arraynullURL or array of image URLs (required for type 'image')
emojistring/arraynullEmoji character or array (required for type 'emoji')
countnumber80Number of particles
colorsarray['#ff006e', '#8338ec', '#3a86ff', '#ffbe0b', '#fb5607']Color palette
useRainbowbooleanfalseUse rainbow colors instead of palette
sizeMinnumber5Minimum particle size (px)
sizeMaxnumber12Maximum particle size (px)
speednumber1.0Movement speed multiplier
connectbooleanfalseDraw lines between nearby particles
connectDistancenumber120Maximum distance for connections (px)
connectOpacitynumber0.6Opacity of connection lines
grabRadiusnumber100Mouse interaction radius (px)
opacitynumber0.85Particle opacity
backgroundParticlesbooleantrueEnable background particles
gravitynumber0.08Gravity effect strength
rotationSpeednumber0.03Rotation speed for non-circle particles
spawnRatenumber0.005Particle spawn rate (firework mode)
trailsbooleanfalseEnable trail effects
trailLengthnumber16Length of particle trails
trailOpacitynumber0.6Opacity of trail effects

Examples

Stars Fireworks — Stars exploding with colorful trails.

Particles.init({ 
type: 'star',
mode: 'firework',
spawnRate: 0.025,
trails: true
});

Colorful DNA Circles — Floating circles with connecting lines.

Particles.init({ 
type: 'circle',
burst: false,
connect: true,
connectOpacity: 0.90,
connectDistance: 130
});

Floating Colorful Stars — Gentle floating stars with connections.

Particles.init({
type: 'star',
mode: 'flow',
count: 140,
sizeMin: 5,
sizeMax: 14,
colors: ['#ffffff', '#ffe066', '#ff99cc'],
opacity: 0.9,
connect: true,
connectDistance: 140,
connectOpacity: 0.25
});

Smooth Falling Confetti Rain — Colorful confetti falling gracefully.

Particles.init({
type: 'confetti',
mode: 'rain',
count: 180,
sizeMin: 6,
sizeMax: 18,
gravity: 0.18,
rotationSpeed: 0.05,
opacity: 0.92
});

Rocket Emoji Floating — 🚀 emojis floating in space.

Particles.init({
type: 'emoji',
emoji: '🚀',
mode: 'flow',
count: 80,
sizeMin: 18,
sizeMax: 38,
opacity: 0.95,
gravity: 0.02,
rotationSpeed: 0.04
});

Mixed Emoji Rain — Party emojis raining down.

Particles.init({
type: 'emoji',
emoji: ['🎉', '✨', '💥', '🌈', '🔥'],
mode: 'rain',
count: 150,
sizeMin: 20,
sizeMax: 45,
gravity: 0.12,
rotationSpeed: 0.06
});

Download Particles JS v1.0.0 Files

Important: Please do not fetch files directly from this website. Remote fetching is blocked for security and performance reasons.

Follow the instructions and use my opensource CDN.

  • particles.min.js— Minified JavaScript code
    11.7 kB. CHECKSUM: 57d596cbb520eec278269a8f5a6a4e58
  • particles.js— Source JavaScript code, unminified
    22.1 kB. CHECKSUM: 1e7e621c27ef1afc2547ca2c44272e7c
  • particles-1.0.0.zip— Complete package with docs & examples
    12.9 kB. CHECKSUM: 5d49bc686866caf76415fb588532008c
  • README— MD format documentation
  • LICENSE— MIT license

All Freebies are open source under the MIT License. Free for personal and commercial use. A link back is appreciated but never required.

Free Open Source Particles JS v1.0.0

Lightweight Canvas Animation Library. Multiple types. Three modes.

Free Tools: What to Know

If you need anything, don't hesitate to contact me—I'm always happy to help!

Do I need to sign up to use these tools?

No. Never. Not happening. There is no hidden 'cost'. These are genuinely free.

I don't ask for emails. I don't ask for signups. Click, copy, use. That's it. I built these for myself and I'm sharing them because sharing is how we all grow.

How should I host these tools?

You can download and host them yourself, or you can use my opensource CDN.

Please do not fetch files directly from this website—remote fetching is blocked for security and performance reasons.

What license are these tools under?

These are free, open source, and MIT licensed. Free for anything.

Personal use. Commercial use. Modify it. Sell it. Whatever works for you. All I ask? If you find it useful, a link back to this site is appreciated. But it's not required. Ever.

Can I modify the code?

Absolutely. It's yours now.

Take it. Modify it. Break it. Fix it. Use it in your projects. Share it with your friends. I built this to be useful, not to be protected. Just don't sell it as your own—that's not cool.

Will these tools be maintained?

Yes, I use them myself—you can see them on this website and across many client projects.

These tools aren't abandoned. I use them in my own apps, so they stay updated, tested, and working. If something breaks, I'll fix it—because I need it too. You can visit this page to stay updated with new versions and improvements.

Can I request a tool?

Maybe. If it sparks my curiosity and/or adds value to me or my clients.

If you need something I haven't built yet, let me know. If it catches my interest, I might build it. If not? You still got free code. No loss.

AntiFraud Expert

Stopping the fraudsters before they strike.

Contact AntiFraud Expert
more

Recommended Products

🔺Joseba Mirena has no involvement in any of the recommended products; all brands are property of their respective companies.
*Sponsored product selection. As an Amazon Associate, I earn from qualifying purchases. These affiliate links do NOT add any additional cost to the customer.
*Prices and reviews are indicative and subject to change without prior notice.

Joseba Mirena

Online Business Developer

Let's boost your business.

Powered by Google™
Powered by Debian™
Powered by Nginx™
Powered by PHP™
Powered by Amazon AWS™
Code That Scales. Teams That Thrive. Security That Protects.