Menu

Post image 1
Post image 2
Post image 3
Post image 4
Post image 5
1 / 5
0

Audio-to-haptics: perfectly syncing phone vibration to audio on the web — how I made it

DEV Community·Aditya Anuragi·27 days ago
#2LTmJF6m
Reading 0:00
15s threshold

The circle fills and pulses in sync with the audio — this is what your phone is feeling. The GIF shows it, but you won't really get it until you feel it. Open this on Android and try it yourself → Other links - View on Github View on npm The haptics landscape Native platforms have solid haptics support, and if haptics are the core of your product, the native APIs are worth learning. But there are very few apps where haptics are the focus, instead most haptics are an addition to polish the UX instead. While native APIs on iOS and Android can create a more polished experience, they come with their own constraints. iOS Core Haptics lets you author precise AHAP files — you define the exact timing, intensity, and sharpness of every pulse. That level of control is what makes native iOS haptics feel polished, both in the API and in what the user actually feels.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More