Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
reactjs-particle-animation
Advanced tools
A simple library to provide react compatible particle animations. Forked from https://github.com/transitive-bullshit/react-particle-animation.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
npm install --save reactjs-particle-animation
# or
yarn add reactjs-particle-animation
Check out the demo in the example folder.
import React, { Component } from 'react'
import ParticleAnimation from 'reactjs-particle-animation'
class Example extends Component {
render () {
return (
<ParticleAnimation />
)
}
}
Property | Type | Default | Description |
---|---|---|---|
numParticles | number | 400 | Number of particles to use. |
interactive | boolean | true | Whether or not animation responds to mouse hover. |
color | object | { r: 158, g: 217, b: 249, a: 255 } | Base rgba particle color. |
background | object | { r: 255, g: 255, b: 255, a: 255 } | Background rgba color. |
lineWidth | number | 1.0 | Connecting line width. |
particleRadius | number | 1.0 | Scaling factor for particle radii. |
particleSpeed | number | 1.0 | Scaling factor for particle speed. |
... | ... | undefined | Any other props are applied to the root canvas element. |
Note that for colors, rgba
are all floating point numbers between 0 and 255 (inclusive).
Note that the canvas size will automatically be inferred based on available space via react-sizeme, so it should be really easy to use this component as a fullscreen background as in the demo.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)Distributed under the MIT License. See LICENSE.txt
for more information.
Ben Lewis - @benjisoft - ben.lewis@visimedia.co.uk.com
Project Link: https://github.com/benjisoft/reactjs-particle-animation
MIT © transitive-bullshit
This module was bootstrapped with create-react-library.
Support my OSS work by following me on twitter
FAQs
Canvas-based particle animation for React.
The npm package reactjs-particle-animation receives a total of 0 weekly downloads. As such, reactjs-particle-animation popularity was classified as not popular.
We found that reactjs-particle-animation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.