The compass responds to device orientation events and calculates the absolute positioning of the device to correctly show the compass heading.
Made by Anton Vasetenkov.
If you want to say hi, you can reach me on LinkedIn or via email. If you like my work, you can support me by buying me a coffee.