The Easiest Way to Detect Device Orientation in JavaScript
In this post, we'll take a look at the easiest way to detect device orientation on the web with JavaScript.
This is compatible with all major browsers (including Safari) and works on mobile/tablet devices.
Video Tutorial
If you'd prefer to watch a vi...
dcodeyt.hashnode.dev2 min read