March 26,2012 -

Touch Gestures with JavaScript – Hammer.js

Hammer.js is a JavaScript library for adding touch gestures support to any website so that users can interact with them easier on touch devices.

It requires jQuery, only 2kb sized and supports tap, double tap, hold, drag and transform.

The library is implemented pretty easily:

• just bind Hammer.js to a container HTML element
• every touch event performed on that element returns a callback with an array of details including:
o event
o position
o touches
o scale
o rotation

For drag gestures, it can also return extra info like the angle, direction and distance.

Hammer.js works -almost- on all modern browsers and, to sum up, “you can touch this” : ).

One Creations a leading web design Hertfordshire company. Why not call us for your next project? Call 01992446622 for details.

For Your Next eCommerce Project , PleaseContact Us to Discuss.

01992 446622

Call today for a no obligation quote

Or send us your brief for a no obligation quote

Technology Partners

  • Magento