A few weeks ago I published a blog post Pinch and Zoom like Instagram.
Turns out I didn't properly test on iOS and the effect was flaky. Here is simpler and more efficient solution using only native JavaScript, no library involved like Hammer.js in my first blog