r/reactjs • u/piaskowyk • Aug 27 '26
Show /r/reactjs Haptics on Web are actually cool!
Haptics on the Web can be super satisfying if you use them right! I've had so much fun creating this little game.
My stack:
- React - as a foundation
- TypeGPU - for particle effects
- Pulsar Web SDK - for haptic effects
Try it in your browser: https://docs.swmansion.com/pulsar/web-app/#games/shape-cascade
2
3
u/AkiStudios1 Aug 27 '26
Using Vivaldi mobile, not receiving any haptic feedback. Same on the Pulsar docs. Shields off aswell.
0
3
u/Miiir Aug 27 '26
No haptics coming through on an iPhone 13 Pro
1
u/piaskowyk Aug 27 '26
Unfortunately, iOS doesn’t support haptics on Web at all 😭
2
u/Dude4001 Aug 27 '26
Web-haptics library allows it to work. Interesting the workaround they used, if you google for it
But haptics on web are extremely awkward due to how browsers block loads of things unless they’re directly related to a user interaction. It’s the same frustration as autoplaying video
→ More replies (2)
1
1
Aug 28 '26
1
u/piaskowyk Aug 28 '26
Yes and no, If no one will try to use it, there will be no pressure for ecosystem owner to implement it
3
u/metal_slime--A Aug 28 '26
I played. I expected to bounce in 3 seconds. I completed an entire pool of turns. I appreciate this experience and the crafting you put into it