We learn to use the device orientation using vanilla javascript. We use the device orientation to create an old-school (vintage) hologram effect similar as those in this video: 
https://youtu.be/7sED8ooVbjY
(Polaroid phantagrams The World of Nature Krypton laser holograms by @Smirholo)

To test on your device, you can upload your code to github and use github pages, or, as I show in the tutorial, you can use codepen.

⭐ MORE LINKS ⭐

Codepen
https://codepen.io/gniziemazity/pen/bGxPPEq


#javascript 

How to Device Orientation with Vanilla JavaScript
1.00 GEEK