Simple Swipe With Vanilla JavaScript

I used to think implementing swipe gestures had to be very difficult, but I have recently found myself in a situation where I had to do it and discovered the reality is nowhere near as gloomy as I had imagined.
This article is going to take you, step by step, through the implementation with the least amount of code I could come up with. So, let’s jump right into it!

The HTML Structure
We start off with a .container that …
The post Simple Swipe With Vanilla JavaScript appeared first on CSS-Tricks.

Link: https://css-tricks.com/simple-swipe-with-vanilla-javascript/