Sadly, device orientation events don't seem to work on Codepen, click here to open the pen seperately