Creating an Image for Parallaxing on a Website

Words
357
Reading
2 min
Listen
Play
9y

Parallaxing can be a pretty cool effect to have on a site.


I was commissioned to create a series of images illustrating factoids about water for a website on water. This one is about the incredible amount of water use on Thanksgiving. The copy with it reads:

" More than 42,000 gallons of water are needed to grow and prepare the food for a typical Thanksgiving dinner for eight in the United States – enough water to fill a 30' x 50' swimming pool."


I thought it would be fun to put the turkey on the diving board. I call it Turkey Pool. This series of illustrations were also to use parallaxing – where some part of the image moves at a different speed than another when scrolling. This is a technique that is often used to simulate depth in a flat environment, like when the background is moving slower than the foreground.

My original artwork:


Turkey_pool

My task was to create the artwork in a way that the web coder could make an element move when you are scrolling up and down the web page. For this I wanted the pool level to rise and fall, as a way to illustrate the point.

How the parallaxing layering works:


turkey-pool-trans

I separated the vector art into three layers. The top layer was pretty much the entire scene. Notice it has a transparent hole in it for the lower layers to show through. The hole acts as a mask (shown above in gray) for those lower layers. The swimming pool was put on a separate layer below. The transparent pool water is on a layer between the two so it can move up and down but only be visible in the pool area. I gave it some transparency so you can actually see through it when it moves, like real water. It is a very simple approach, but effective.

This 17 second motion graphic shows the effect:



Steemians, thanks for checking out this post. I hope you found this informative. Please follow me mrsomebody@mrsomebody and comment below your thoughts!

Creating an Image for Parallaxing on a Website | Ecency