All Projects → kr1tzy → reactparticles.js

kr1tzy / reactparticles.js

Licence: MIT license
Independently configurable react component for particles.js

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to reactparticles.js

Tsparticles
tsParticles - Easily create highly customizable particles animations and use them as animated backgrounds for your website. Ready to use components available for React.js, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Inferno, Solid, Riot and Web Components.
Stars: ✭ 2,694 (+11125%)
Mutual labels:  particles, particlesjs, react-particles-js
X-Particles-Vue
A Vue.js particles plugin base on particles.js
Stars: ✭ 15 (-37.5%)
Mutual labels:  particles, particlesjs
Layaair discard
This is old LayaAir veriosn writetten by ActionScript 3.0 ,now LayaAir is using TypeScript as the Engine Script,Please use https://github.com/layabox/LayaAir instead.
Stars: ✭ 1,858 (+7641.67%)
Mutual labels:  particles
particle-emitter
A particle system for PixiJS
Stars: ✭ 709 (+2854.17%)
Mutual labels:  particles
Particle Life
Game of life with particles
Stars: ✭ 194 (+708.33%)
Mutual labels:  particles
Unity resources
A list of resources and tutorials for those doing programming in Unity.
Stars: ✭ 170 (+608.33%)
Mutual labels:  particles
Vue Particle Effect Buttons
A bursting particles effects buttons component ✨💥❄️🌋
Stars: ✭ 219 (+812.5%)
Mutual labels:  particles
Parcels
Main code for Parcels (Probably A Really Computationally Efficient Lagrangian Simulator)
Stars: ✭ 148 (+516.67%)
Mutual labels:  particles
MultipleScattering.jl
A Julia library for simulating, processing, and plotting multiple scattering of waves.
Stars: ✭ 35 (+45.83%)
Mutual labels:  particles
Three Nebula
WebGL based particle system engine for three.js
Stars: ✭ 192 (+700%)
Mutual labels:  particles
ParticleEditor
Particle editor for SFML/Thor based applications
Stars: ✭ 14 (-41.67%)
Mutual labels:  particles
React Native Confetti Cannon
React Native confetti explosion and fall like iOS does.
Stars: ✭ 149 (+520.83%)
Mutual labels:  particles
Black
World's fastest HTML5 2D game engine   🛸
Stars: ✭ 174 (+625%)
Mutual labels:  particles
Partikel accelleration on gpu
Particle accelleration with OpenGL 4.3, using the compute shader to calculate particle movement on graphics hardware.
Stars: ✭ 236 (+883.33%)
Mutual labels:  particles
Unity Bullet Hell
An extremely efficient projectile generator for unity.
Stars: ✭ 168 (+600%)
Mutual labels:  particles
ping-vue-admin
用vue做的一个后台管理系统模板,可以用此项目作为一个脚手架工程
Stars: ✭ 50 (+108.33%)
Mutual labels:  particles
Proton
Javascript particle animation library
Stars: ✭ 1,958 (+8058.33%)
Mutual labels:  particles
Konfetti
Celebrate more with this lightweight confetti particle system 🎊
Stars: ✭ 2,278 (+9391.67%)
Mutual labels:  particles
Particleground Portfolio
A minimalistic particle theme landing page template. ⚛️
Stars: ✭ 204 (+750%)
Mutual labels:  particles
phaser-particle-editor-plugin
This plugin creates particles based on JSON data generated by Phaser Particle Editor
Stars: ✭ 28 (+16.67%)
Mutual labels:  particles

reactparticles.js

Independently configurable React component for tsParticles.

Overview

Plug-and-play particles into existing React projects using the same downloadable JSON configuration as the original tsParticles. Configure multiple components independently using seperate JSON files.

Install

npm install reactparticles.js

Props

prop description type required
id unique identifier string yes
config path to particles configuration file string no
style styles to add or override the default object no
className class name to apply to the component string no

Default style

The following style is applied to each instance so it will automatically expand to its parent's height and width. This style can be overridden or expanded by passing an object with the values in as the style prop.

style: {
  position: "absolute" as "absolute",
  display: "block",
  top: "0",
  left: "0",
  height: "100%",
  width: "100%"
 }

Configuration

  • Customize and downloaded your config files from the tsParticle site

  • Place the config file in your public folder and pass the config file path to your component.

Example use

Below I'm overwriting the default style width and height and adding a background color and opacity.

<Particles
  id="config-1"
  config="particles/config-1.json"
  style={{
    width: "50%",
    height: "50%",
    backgroundColor: "green",
    opacity: "0.5"
  }}
  className="particles-class-name"
/>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].