pressure

Pressure is a lightweight JavaScript library for both Force Touch and 3D Touch through a single API.

forcetouchforce-touch3dtouch3d-touchpressurepressurejsiphone6siphone6splusiphone7iphone7plusmagic-trackpadapple-pencil

https://pressurejs.com