For a side project, I wanted to create an animated picture, which would rotate on page scroll. Here is how it can be done using JavaScript and CSS.