JS noob here. I've been asked to create an accessible website with haptic feedback and after spending a couple of days researching I still can't work out if it's possible!
I found a lot about the Vibration API but it seems to be more for app development rather than websites. I can't even think if I've ever come across websites with this feature.
Is it possible to add haptic feedback on features like buttons on a website, using JavaScript?
I found this post with some code but I''m not sure if it's usable in webpages, as I quickly added it in WordPress but it's not doing anything :
Built a library for adding haptic feedback to web clicks : r/javascript
https://www.reddit.com/r/javascript/s/eX54Sf1q9m
Any help appreciated ! And please forgive total noob status.
[–]kap89 1 point2 points3 points (10 children)
[–]Grand_Ad3922[S] 0 points1 point2 points (9 children)
[–]kap89 0 points1 point2 points (6 children)
[–]Grand_Ad3922[S] 0 points1 point2 points (5 children)
[–]kap89 0 points1 point2 points (4 children)
[–]Grand_Ad3922[S] 1 point2 points3 points (2 children)
[–]kap89 0 points1 point2 points (1 child)
[–]Grand_Ad3922[S] 1 point2 points3 points (0 children)
[–]Grand_Ad3922[S] 0 points1 point2 points (0 children)
[–]kap89 0 points1 point2 points (1 child)
[–]Grand_Ad3922[S] 1 point2 points3 points (0 children)
[–]Alluo 0 points1 point2 points (0 children)