http://maid.i2p/blog/2025-06-03-ios-web-haptics.html
Until I later had to use cobalt.tools for downloading a video, and to my surprise, their buttons had haptics. Of course, I instantly went to their source code to see how they implemented it, and it was pretty trivial. I'm kinda mad at myself how I didn't figure this out earlier. The implementation: github.com/imputnet/cobalt/blob/main/web/src/lib/haptics.ts TLDR: They just create an <input type="checkbox" switch /> element, wrap it in a label, and click it, then it gets removed from the...
1 similar result skipped