Refactored to enable the change to add a generic view instead of image only

For a project of mine, I needed an effect similar to yours, but showing a video instead of a plain image.
So I refactored the code to accept a generic view too.
I upgraded the demo as well, adding a simple video playing in motion