npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-particle-svg-pro

v1.0.8

Published

Professional particle animation component for SVG logos with explode and fade effects

Readme

🎨 react-particle-svg-pro

npm version npm downloads license GitHub stars

Turn any SVG logo into thousands of animated particles with professional effects

Transform your SVG logos into stunning particle animations with explode, fade, and mouse interaction effects. Perfect for landing pages, portfolio showcases, and interactive backgrounds.


✨ Features

🎯 Core

  • 🔄 Convert any SVG into thousands of moving particles
  • 💥 Explode animation with realistic physics effects
  • 🌊 Gradual fade-out animation
  • 🖱️ Mouse interaction (repel/attract particles)

🎨 Visual

  • 🌈 3 color modes: Single, Rainbow, Heat
  • ⚪ 4 particle shapes: Circle, Square, Triangle, Star
  • ✨ Random glow effect on particles
  • 🎭 4 animation modes: Morph, Vortex, Wave, Bounce

🎮 Export

  • 📸 Screenshot capture and download
  • 🎥 Video recording (MP4)
  • 💾 Save/load state to localStorage
  • 🔊 Optional sound effects

📦 Installation

npm install react-particle-svg-pro

or with yarn:

yarn add react-particle-svg-pro


🚀 Quick Start

import React, { useRef } from 'react'; import ParticleSVG from 'react-particle-svg-pro';

const myLogo = <svg viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="black"/></svg>;

function App() { const particleRef = useRef();

return ( <div style={{ width: '100vw', height: '100vh' }}> <ParticleSVG ref={particleRef} svgString={myLogo} particleCount={2500} colorMode="rainbow" animationMode="vortex" onComplete={() => console.log('Logo formed!')} />

  <button onClick={() => particleRef.current?.explode()}>💥 Explode</button>
  <button onClick={() => particleRef.current?.reset()}>🔄 Reset</button>
</div>

); }


📖 Props

| Name | Type | Default | Description | |------|------|---------|-------------| | svgString | string | required | SVG content as string | | particleCount | number | 2000 | Number of particles (500-5000) | | particleColor | string | #ff6b6b | Particle color | | backgroundColor | string | #0a0a0a | Background color | | animationDuration | number | 2500 | Formation animation duration (ms) | | explodeDuration | number | 800 | Explode animation duration (ms) | | fadeDuration | number | 2000 | Fade out duration (ms) | | colorMode | string | single | single, rainbow, heat | | animationMode | string | morph | morph, vortex, wave, bounce | | particleShape | string | circle | circle, square, triangle, star | | mouseEffect | boolean | true | Enable/disable mouse interaction | | mouseEffectType | string | repel | repel or attract | | autoStart | boolean | true | Auto-start animation on load |


🎮 Ref Methods

| Method | Description | |--------|-------------| | explode() | Trigger explode animation | | reset() | Reset to initial state | | downloadScreenshot(filename) | Download screenshot as PNG | | downloadVideo(filename, duration) | Download animation as MP4 | | getProgress() | Get current progress (0-100) | | isAnimating() | Check if animation is running | | saveState() | Save current state to localStorage | | loadState() | Load saved state from localStorage |


🎯 Callbacks

| Callback | Description | |----------|-------------| | onReady | Called when component is ready | | onStart | Called when animation starts | | onProgress | Called with progress (0-100) | | onComplete | Called when formation completes | | onExplodeStart | Called when explode starts | | onExplodeComplete | Called when explode completes | | onFadeComplete | Called when fade completes |


🎨 Example with Controls

import React, { useRef, useState } from 'react'; import ParticleSVG from 'react-particle-svg-pro';

function Example() { const ref = useRef(); const [progress, setProgress] = useState(0);

return (

  <div>
    <button onClick={() => ref.current?.explode()}>💥 Explode</button>
    <button onClick={() => ref.current?.reset()}>🔄 Reset</button>
    <button onClick={() => ref.current?.downloadScreenshot()}>📸 Screenshot</button>
    <div>Progress: {progress}%</div>
  </div>
</div>

); }


🤝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

MIT © Hamidreza Norouzi


⭐ Support

If you like this project, please give it a star on GitHub! ⭐