This was inspired by an old blog post of Sohtanaka. He had created a similar effect using jQuery. I decided to replicate the same effect with CSS3. My final result is slightly different compared to his but it is still the same effect. Link to the original tutorial and demo is included in the pen above.
Artworks belong to Mernan Behairi. Link to her blog/portfolio is included in the pen as well.