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•16mo ago
Message Not Public
Sign In & Join Server To View
Jochem
Jochem•16mo ago
it's a library, I just forget the name of it
Jochem
Jochem•16mo ago
particles.js
particles.js - A lightweight JavaScript library for creating particles
A lightweight JavaScript library for creating particles.
Anonymous DEV
Anonymous DEV•15mo ago
particlesBackground component
Anonymous DEV
Anonymous DEV•15mo 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•15mo ago
all i can see is this black screen
Anonymous DEV
Anonymous DEV•15mo ago
let me know if i lack info
Jochem
Jochem•15mo ago
I have zero experience with particles.js and react are you getting any errors? @AnonymousDEV
Anonymous DEV
Anonymous DEV•15mo ago
no m not having any errors at all particles.js is showing object in console for some reason
Anonymous DEV
Anonymous DEV•15mo ago
Jochem
Jochem•15mo ago
no idea then, sorry
Anonymous DEV
Anonymous DEV•15mo ago
😭😭😭😭
Jochem
Jochem•15mo ago
hopefully someone else will be able to help
Anonymous DEV
Anonymous DEV•15mo ago
should i make a new thread?
Jochem
Jochem•15mo 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
Want results from more Discord servers?
Add your server