i want to ask about a website i saw

there are websites that will make lines like these follow mouse pointer how does they do that
15 Replies
Unknown User
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
Jochem
Jochem•13mo ago
it's a library, I just forget the name of it
Jochem
Jochem•13mo ago
particles.js
particles.js - A lightweight JavaScript library for creating particles
A lightweight JavaScript library for creating particles.
Anonymous DEV
Anonymous DEV•13mo ago
particlesBackground component
Anonymous DEV
Anonymous DEV•13mo ago
app.js file
import './App.css';
import ParticlesBackground from './ParticlesBackground';

function App() {
return (
<>
<ParticlesBackground/>
</>
);
}

export default App;
import './App.css';
import ParticlesBackground from './ParticlesBackground';

function App() {
return (
<>
<ParticlesBackground/>
</>
);
}

export default App;
Anonymous DEV
Anonymous DEV•13mo ago
all i can see is this black screen
Anonymous DEV
Anonymous DEV•13mo ago
let me know if i lack info
Jochem
Jochem•13mo ago
I have zero experience with particles.js and react are you getting any errors? @AnonymousDEV
Anonymous DEV
Anonymous DEV•13mo ago
no m not having any errors at all particles.js is showing object in console for some reason
Anonymous DEV
Anonymous DEV•13mo ago
Jochem
Jochem•13mo ago
no idea then, sorry
Anonymous DEV
Anonymous DEV•13mo ago
😭😭😭😭
Jochem
Jochem•13mo ago
hopefully someone else will be able to help
Anonymous DEV
Anonymous DEV•13mo ago
should i make a new thread?
Jochem
Jochem•13mo ago
yeah, that'll probably get you a better response. It would help if you could include a codesandbox or something where people can see your code running, and maybe include a link to the react-particles package on npm