User Proximity Event
Back to the days
Today I saw Peek Calendar App and drew the attention on the interesting gesture. When a hand so close to phone we can see a shadow and clock on top of the screen. Wow!
How it works?
I as a curious front end developer thought that impossible to make that gesture on the mobile sites/apps and after a few minutes I found interesting document about Proximity API with the interesting example:
Looks interesting. I decide to test with this code: