Designing a 3D Background with a Parallax Effect Arizona

The parallax effect is an illusion that is created when the viewer is moving and the objects being viewed may seem to move slower in the distance while objects that are closer to the viewer seem to move a lot faster. A practical example would be when one is riding in a car looking out the window on a highway, and then you notice the objects nearest you like a fence moving by quickly while horses in a field move slower and objects beyond them like a hill won't seem to move at all.

Local Companies

Pure Graphic Fury
480-388-9984
3016 N Dobson Rd
Chandler, AZ
Superior Design Group LLC
480-294-6946
3454 N San Marcos Pl
Chandler, AZ
Matts Custom Signs and Graphics
(480) 840-3188
18302 E Nunnelley Rd
Gilbert, AZ
Blackwell Design
623-322-64164
7467 w via montoya drive
glendale, AZ
Creative Dept., Inc.
480-368-2200
7633 East Acoma Drive
Scottsdale, AZ
Premier Marketing
(602) 481-9864
10534 W La Jolla Drive
Sun City, AZ
Westside Sign-A-Rama
623979-5115
8345 W. Thunderbird Rd #112
Peoria, AZ
Advent Signs & Printing
623486-8646
9133 W. Thunderbird Ste. 105
Peoria, AZ
Premier Marketing
(602) 481-9864
10534 W La Jolla Drive
Sun City, AZ
AlphaGraphics #106
(602) 234-2944
8041 N. Black Canyon Hwy., Suite 101
Phoenix, AZ

Provided by: 

The parallax effect is an illusion that is created when the viewer is moving and the objects being viewed may seem to move slower in the distance while objects that are closer to the viewer seem to move a lot faster. A practical example would be when one is riding in a car looking out the window on a highway, and then you notice the objects nearest you like a fence moving by quickly while horses in a field move slower and objects beyond them like a hill won't seem to move at all. There is a difference in the orientation of the objects you see. Web designers have begun using this effect on various websites and it's an interesting graphic illusion that adds a point of interest on your website when resizing the browser window. To create the 3D background with a parallax effect on your website you will need to use Photoshop and CSS codes.

  1. Select a theme. Pick the theme and images you want to create a parallax effect with. You'll need at least three layers of images to create the 3D background design with a parallax effect. You can create background image with snowflakes of different shapes and sizes.
  2. Prepare the images and layers in Photoshop. When you have your theme and images ready, open your Photoshop program and load the images in different layers. In this example we have a winter theme with snowflakes that will help create the parallax effect. You should have 3 images and each will be in their respective layers. The first layer will contain the background picture. This is the furthest image from the viewer so you'll have the smallest snowflakes on top of a blue background color. The second layer will contain the mid ground image, these will be slightly larger snowflakes. Then the third and last layer will contain the foreground image or the largest picture.
  3. Save the layers in the proper format. We will be saving each image in the PNG 24 format. So when you are done tweaking your images and happy with the results, save each image in the PNG 24 format. First save the background image, but before saving, turn off the visible button on the foreground and midground layers on the layers palette. So the only visible image will be the blue background with small snowflakes on top of it. Go to Save for Web and Devices and select Save, make sure it is in the PNG 24 format and name it background.png. Next, select the midground image layer and make it visible by clicking the visibility box next to it. Since we need to make this a transparent layer we need to turn off the background image visibility button and the background color. So the only visible image is the medium sized snowflakes without a background. Save the midground layer the same way you saved the background layer. Name it midground.png. Last we'll save the foreground layer, turn on the foreground layer visibility button and turn off the midground visibility button. So the only image visible is the foreground image or the biggest snowflake image with no background. Follow the same saving process and name it foreground.png.
  4. Create the HTML and CSS codes. Go to your index.html file and create div for the foreground and midground images. The div elements will go between your body tags so it will look like this:

Now go to your style.css file and put in the following code in the body tags:

body {

background: url(images/background.png) repeat 5% 5%;

}

#midground {

background: url(images/midground.png) repeat 30% 80%;

position: absolute;

top: 0; left: 0; right: 0; bottom: 0;

z-index: 997;

}

#foreground {

background: url(images/foreground.png) repeat 105% 120%;

position: absolute;

top: 0; left: 0; right: 0; bottom: 0;

z-index: 998;

}

The CSS code will style the midground and foreground images with absolute positioning and repeat percentages. The repeat percentages will control the horizontal and vertical movement speed of each image. You'll notice our foreground percentages are higher than 100%, this means it will move at a rate faster than the browser window's rate when it is resized. You can now test your theme in your browser.

Click here to visit HowToDoThings.com

Featured Local Company

Pure Graphic Fury

480-388-9984
3016 N Dobson Rd
Chandler, AZ

Related Articles
- Computer Speed Update Arizona
Application designers love little applets that start up when Windows does, making the application seem faster. That's fine if you use the program all the time, but if you're an infrequent user then you don't need these running in the background, stealing memory and processor cycles.
- About Scythe Arizona
- Diskeeper 10 Home Edition Arizona
- Art Graphics Arizona
- Dell UltraSharp 1907FP Arizona
- Sony DVDirect MC5 Arizona
- Computer Mice And Their Origin In Telephones Arizona
- Jays C-Jays Overviews Arizona
- Philips Brilliance 230WP7NS Arizona
- Causes of a Slow Computer Arizona
Regional Articles
- Designing a 3D Background with a Parallax Effect Apache Junction AZ
- Designing a 3D Background with a Parallax Effect Avondale AZ
- Designing a 3D Background with a Parallax Effect Buckeye AZ
- Designing a 3D Background with a Parallax Effect Bullhead City AZ
- Designing a 3D Background with a Parallax Effect Casa Grande AZ
- Designing a 3D Background with a Parallax Effect Cave Creek AZ
- Designing a 3D Background with a Parallax Effect Chandler AZ
- Designing a 3D Background with a Parallax Effect Cottonwood AZ
- Designing a 3D Background with a Parallax Effect Flagstaff AZ
- Designing a 3D Background with a Parallax Effect Fountain Hills AZ
- Designing a 3D Background with a Parallax Effect Gilbert AZ
- Designing a 3D Background with a Parallax Effect Glendale AZ
- Designing a 3D Background with a Parallax Effect Goodyear AZ
- Designing a 3D Background with a Parallax Effect Green Valley AZ
- Designing a 3D Background with a Parallax Effect Kingman AZ
- Designing a 3D Background with a Parallax Effect Lake Havasu City AZ
- Designing a 3D Background with a Parallax Effect Mesa AZ
- Designing a 3D Background with a Parallax Effect Paradise Valley AZ
- Designing a 3D Background with a Parallax Effect Peoria AZ
- Designing a 3D Background with a Parallax Effect Phoenix AZ
- Designing a 3D Background with a Parallax Effect Prescott AZ
- Designing a 3D Background with a Parallax Effect Prescott Valley AZ
- Designing a 3D Background with a Parallax Effect Safford AZ
- Designing a 3D Background with a Parallax Effect Scottsdale AZ
- Designing a 3D Background with a Parallax Effect Sedona AZ
- Designing a 3D Background with a Parallax Effect Sierra Vista AZ
- Designing a 3D Background with a Parallax Effect Somerton AZ
- Designing a 3D Background with a Parallax Effect Sun City AZ
- Designing a 3D Background with a Parallax Effect Sun City West AZ
- Designing a 3D Background with a Parallax Effect Surprise AZ
- Designing a 3D Background with a Parallax Effect Tempe AZ
- Designing a 3D Background with a Parallax Effect Tucson AZ
- Designing a 3D Background with a Parallax Effect Yuma AZ
Related Articles
- Computer Speed Update Arizona
Application designers love little applets that start up when Windows does, making the application seem faster. That's fine if you use the program all the time, but if you're an infrequent user then you don't need these running in the background, stealing memory and processor cycles.
- About Scythe Arizona
- Diskeeper 10 Home Edition Arizona
- Art Graphics Arizona
- Dell UltraSharp 1907FP Arizona
- Sony DVDirect MC5 Arizona
- Computer Mice And Their Origin In Telephones Arizona
- Jays C-Jays Overviews Arizona
- Philips Brilliance 230WP7NS Arizona
- Causes of a Slow Computer Arizona
Related Local Events
TAB Out of Home Media Conference and Marketing Expo and OAAA OBIE Awards
Dates: 5/2/2010 - 5/4/2010
Location: Marriott Desert Ridge
Phoenix, AZ
View Details

Original Creative Festival-Tucson
Dates: 7/25/2009 - 7/27/2009
Location: Tucson Expo Center
Tucson, AZ
View Details

OASIS - Gift Show 2009
Dates: 7/23/2009 - 7/25/2009
Location: University of Phoenix Stadium
Glendale, AZ
View Details

Arizona Antique Show - Flagstaff, Jul
Dates: 7/10/2009 - 7/12/2009
Location: Coconino County Fairgrounds
Flagstaff, AZ
View Details

Rss   Delicious   Digg   Add To My Yahoo   Add To My Google   Bookmark   Search Plugin

Topics:
Advertising Family Home Services Real Estate Resources
Business Services Fashion Industrial Goods & Services Retail & Consumer Services
Career Financial Services Insurance Software
Cars Food & Beverage Internet Technology
Computer Hardware Franchise Legal Telecommunications
Construction Health Miscellaneous Trade Shows
Education Holidays Nightlife Travel
Entertainment Home Appliances Online Database Weddings
Environmental Home Electronics Pets World History