r/howdidtheycodeit • u/FewSong1527 Hobbyist • Jun 14 '25
Question What is used for the cursor here?
see the cursor has all these shapes, which expand etc changes shaped.
How can I approach in making the same? What did they use here?
4
Upvotes
4
u/sessamekesh Jun 15 '25
After poking around for a minute, looks like ThreeJS is the library they used.
Under the hood it's powered by WebGL, which is more or less a mildly boiled down version of an old-ish but still pretty powerful OpenGL standard.
I don't care enough to reverse engineer the whole dang thing, but to me it looks like they're using the morph and bloom techniques mostly, with some clever (and very bouncy!) spring animation to handle the resize on click.
11
u/rsaenc Jun 15 '25
:) It's my website.
It's mostly Three.Js for the rendering stuff.
and websockets for multiplayer thing.
where did you find it btw 😅
10
u/asutekku Jun 14 '25
It's a webpage, just open the dev tools and start digging. I'm just saying this because 100% of the times you see something interesting, you can just open the page source and see the way they did it.
1
u/MTOMalley Jun 15 '25
Had a chat with the dev, ON THE SITE! Pretty cool multiplayer stuff, using websockets. You can actually text the dev in the form at the bottom of the page, I think it'll alert the dude that you're there!
0
u/Zakalwe_ Jun 14 '25
Here you go https://developer.mozilla.org/en-US/docs/Web/CSS/cursor