User Proximity Event

Natural behaviors in interfaces with Javascript.

Back to the days

I remember when I first time saw parallax effect at the “Nike Better World” site I thought it awesome. I immediately decided to try make this effect with Javascript and I did it.

The Nike Better World site with a parallax.

Peek Calendar

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:

And result:

Show your support

Clapping shows how much you appreciated Andrey Keske’s story.