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 🙏

© 2024 – Pkg Stats / Ryan Hefner

particleground.ts

v1.0.3

Published

Particleground.ts is a React component library that creates a particle animation effect on a canvas, inspired by jquery.particleground.js.

Downloads

713

Readme

npm version npm downloads npm license npm bundle size GitHub stars GitHub forks GitHub Pages

ParticleGround.ts

ParticleGround.ts is a React component library that creates a particle animation effect on a canvas, inspired by jquery.particleground.js.

Visit the project site: Particleground.ts

Installation

Install via npm and yarn:

npm install particleground.ts
yarn add particleground.ts

Usage

import React from 'react';
import ParticleGround from 'particleground.ts';

const App = () => {
  return (
    <div style={{ position: 'relative', width: '100vw', height: '100vh',overflow: 'hidden',
        backgroundColor: '#000000', }}>
      <ParticleGround />
    </div>
  );
};

export default App;

Props

| Prop Name | Type | Default Value | Description | |---------------------|--------------------|---------------|-------------| | minSpeedX | number | 0.1 | Minimum horizontal speed. | | maxSpeedX | number | 0.7 | Maximum horizontal speed. | | minSpeedY | number | 0.1 | Minimum vertical speed. | | maxSpeedY | number | 0.7 | Maximum vertical speed. | | directionX | 'center' \| 'left' \| 'right' | 'center' | Direction of horizontal movement. | | directionY | 'center' \| 'up' \| 'down' | 'center' | Direction of vertical movement. | | density | number | 10000 | Particle density. | | dotColor | string | '#666666' | Color of the particles. | | lineColor | string | '#666666' | Color of the lines connecting particles. | | particleRadius | number | 7 | Radius of the particles. | | lineWidth | number | 1 | Width of the lines connecting particles. | | curvedLines | boolean | false | Enable or disable curved lines. | | proximity | number | 100 | Distance at which particles connect. | | parallax | boolean | true | Enable or disable parallax effect. | | parallaxMultiplier| number | 5 | Strength of the parallax effect. | | onInit | () => void | () => {} | Callback for initialization. | | onDestroy | () => void | () => {} | Callback for cleanup. |

Demo

You can view a live demo of the Particleground.ts library here.

Or clone the repository and run the demo locally:

git clone https://github.com/Sivamani-18/particleground.ts.git
cd particleground.ts
npm install
npm start

This will start a local development server where you can see the Particleground.ts in action.

License

Licensed under the MIT License.