Download Portfolio-Source/src/components/Particle.js from mshanker/portfolio: direct link, hf CLI and curl.
- Browser
- Download file 1.07 kB
-
https://huggingface.co/spaces/mshanker/portfolio/resolve/main/Portfolio-Source/src/components/Particle.js
- Command line
-
hf download hf://spaces/mshanker/portfolio/Portfolio-Source/src/components/Particle.js
-
curl -L -o Particle.js https://huggingface.co/spaces/mshanker/portfolio/resolve/main/Portfolio-Source/src/components/Particle.js
1.07 kB
| import React from "react"; | |
| import Particles from "react-tsparticles"; | |
| function Particle() { | |
| return ( | |
| <Particles | |
| id="tsparticles" | |
| params={{ | |
| particles: { | |
| number: { | |
| value: 160, | |
| density: { | |
| enable: true, | |
| value_area: 1500, | |
| }, | |
| }, | |
| line_linked: { | |
| enable: false, | |
| opacity: 0.03, | |
| }, | |
| move: { | |
| direction: "right", | |
| speed: 0.05, | |
| }, | |
| size: { | |
| value: 1, | |
| }, | |
| opacity: { | |
| anim: { | |
| enable: true, | |
| speed: 1, | |
| opacity_min: 0.05, | |
| }, | |
| }, | |
| }, | |
| interactivity: { | |
| events: { | |
| onclick: { | |
| enable: true, | |
| mode: "push", | |
| }, | |
| }, | |
| modes: { | |
| push: { | |
| particles_nb: 1, | |
| }, | |
| }, | |
| }, | |
| retina_detect: true, | |
| }} | |
| /> | |
| ); | |
| } | |
| export default Particle; | |