<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Perquisite Design &#187; Blog</title>
	<atom:link href="http://perquisitedesign.com/category/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://perquisitedesign.com</link>
	<description>fringe benefits without the edge</description>
	<lastBuildDate>Wed, 10 Mar 2010 04:22:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Make a Snazzy Scrolling Header</title>
		<link>http://perquisitedesign.com/blog/make-a-snazzy-scrolling-header</link>
		<comments>http://perquisitedesign.com/blog/make-a-snazzy-scrolling-header#comments</comments>
		<pubDate>Sun, 28 Jun 2009 05:02:13 +0000</pubDate>
		<dc:creator>omtay38</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://perquisitedesign.com/?p=234</guid>
		<description><![CDATA[Snazzy, shiny effects are all the rage in this current Web 2.0 design frenzy. So are are super-cool graphics, especially in the header of your page. In this article, I&#8217;ll show you a crafty parallax scrolling technique you can use for pleasure and profit! Check out the tutorial or skip straight to the demo.


Paralla-wha?
Not to [...]]]></description>
			<content:encoded><![CDATA[<p>Snazzy, shiny effects are all the rage in this current Web 2.0 design frenzy. So are are super-cool graphics, especially in the header of your page. In this article, I&#8217;ll show you a crafty parallax scrolling technique you can use for pleasure and profit! Check out the tutorial or skip straight to <a href="/wp-content/uploads/2009/06/parallax.html">the demo</a>.<br />
<span id="more-234"></span></p>
<div class="span-15">
<h3>Paralla-wha?</h3>
<p>Not to be confused with high-school geometry, <a href="http://en.wikipedia.org/wiki/Parallax" title="wikipedia">parallax</a> is a visual concept oft&#8217; used in old-timey video games. Picture a mustachioed plumber defeating strange shell creatures. As the stumpy plumber scrolls jollily right, the floor scrolls at the same speed as him. However, the happy clouds in the background scroll slower than our hero. This creates the amazing appearance that the clouds (or sun or stars or evil castle walls) are further away than the hero. This effect can be modified by altering the speed of the numerous elements.</p>
<div id="attachment_253" class="wp-caption alignleft" style="width: 620px"><img src="http://perquisitedesign.com/wp-content/uploads/2009/06/mario.png" alt="A slower background seems further away." title="Super Mario Bros. 3" width="610" height="300" class="size-full wp-image-253" /><p class="wp-caption-text">A slower background seems further away.</p></div>
<h3>Prepping the Images</h3>
<p>Taking a step away from our plumber friend, our header will scroll up (or down if you like thinking backwards). The first step in creating the header is preparing the artwork. We&#8217;ll make a three layer scroller and add a fourth layer for the character.</p>
<p>When designing your layers, it is important to consider both their layering and transparency. Where do you want parts to shine through? Where are things obscured. I&#8217;ll leave this part up to you. Here&#8217;s a quick-and-dirty sample I&#8217;ve prepared earlier</p>
<div><div id="attachment_264" class="wp-caption alignleft" style="width: 620px"><img src="http://perquisitedesign.com/wp-content/uploads/2009/06/layer-comps.png" alt="Layers are numbered from top to bottom. Transparency is not visible, but you get the idea." title="Layer Comps" width="610" height="695" class="size-full wp-image-264" /><p class="wp-caption-text">Layers are numbered from top to bottom. Transparency is not visible, but you get the idea.</p></div></div>
<h3>A Note on Image Size</h3>
<p>Images should be in PNG-24 format to accommodate varying opacities (sorry IE). Also important are the heights of the images. Static elements (like the title) can be whatever hight they need to be. Everything else has a hight relative to how fast you want it to move. The faster it moves, the taller it should be.</p>
<h3>Putting it Together &#8211; the HTML</h3>
<p>The structure of the page is quite simple. We need four elements to enclose our four images. These four will be wrapped in each other.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;header&quot;</span>&gt;</span>
     <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>  <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;snazzyheader&quot;</span>&gt;</span>Falling Man Productions<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<p>Easy huh? That&#8217;s because we&#8217;re gonna be doing most of the heavy lifting with jQuery. How&#8217;s about them apples? Let&#8217;s look at the CSS before we get to the lifting.</p>
<h3>Putting it Together &#8211; the CSS</h3>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#header</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">610px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
h1<span style="color: #6666ff;">.snazzyheader</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">610px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">transparent</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;layer-2.png&quot;</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-9999em</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">3</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#header</span> <span style="color: #6666ff;">.layer-4</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#header</span> <span style="color: #6666ff;">.layer-3</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#header</span> <span style="color: #6666ff;">.layer-1</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">610px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#header</span> <span style="color: #6666ff;">.layer-4</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">transparent</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;layer-4.png&quot;</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat-y</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#header</span> <span style="color: #6666ff;">.layer-3</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">2</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">transparent</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;layer-3.png&quot;</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat-y</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#header</span> <span style="color: #6666ff;">.layer-1</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">4</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">transparent</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;layer-1.png&quot;</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat-y</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Ok, some explaining. First <code>#header</code> houses all our elements so it needs some basic styling. Width, height, and relative positioning all help us later on.</p>
<p>The <code>h1</code> element gets the same width and height as the finished header. A super high, super negative text-indent keeps the header text invisible to the end user while still letting google-bot and it&#8217;s ilk find the site. Most important are the z-index and relative positioning. The z-index puts the layer in the stack (higher numbers are &#8220;closer&#8221; to you) and the positioning lets the layer play in the same world as absolutely positioned elements.</p>
<p>Then a catch-all declaration for our other three layers. Again, the same width and height. These layers, however, have absolute positioning to keep them over each other. Because they are contained in the relatively positioned <code>#header</code>, they cannot escape. <code>top: 0</code> makes sure these elements stay glued to the top of the <code>#header</code> element.</p>
<p>Lastly, the three layer elements get their individual z-indexes and background images.</p>
<p>Phew!</p>
<h3>Putting it Together &#8211; the jQuery</h3>
<p>Now for the fun part! The jQuery! You&#8217;ll need <a href="http://jquery.com/" title="jQuery">the latest jQuery build</a> and the wonderful <a href="http://plugins.jquery.com/project/backgroundPosition-Effect" title="Background Position Effect">Background Position Animation Plugin</a>. Got &#8216;em? Good. Now first we have to get these layers into our document. We do this with jQuery&#8217;s <code>append</code> function.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#header&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;span class=&quot;layer-1&quot;&gt;&lt;/span&gt;&lt;span class=&quot;layer-3&quot;&gt;&lt;/span&gt;&lt;span class=&quot;layer-4&quot;&gt;&lt;/span&gt;'</span><span style="color: #009900;">&#41;</span>
	.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;span&quot;</span><span style="color: #009900;">&#41;</span>
	.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;1&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">2000</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">500</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>After appending the three spans we immediately <code>hide</code> them and use a makeshift timer (<code>animate({opacity: "1"}, 2000)</code>) to give time for the background images to load. After this time has past, we <code>fadeIn</code> the images. Now it&#8217;s time to start the scrolling. Because we want the scrolling to be continuous, we&#8217;ll build the functions as loops outside of the <code>$(document).ready</code> function and include them later. The basic function looks like this:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> layer1<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.layer-1'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>backgroundPosition<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;(0 -482px)&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">12000</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;linear&quot;</span><span style="color: #009900;">&#41;</span>
		     .<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>backgroundPosition<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;(0 0)&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;linear&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	setTimeout<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;layer1()&quot;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">12000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>We animate the <code>backgroundPosition</code> to a negative value <strong>equal to the height of the image.</strong> Then, we animate it back to &#8220;0 0&#8243; in no time at all (to seamlessly reset the animation). The <code>setTimeout</code> function gets the same timing as the original animation and fires this same function again creating a loop. Three of these functions are made, one for each of the animating layers. The final javascript looks like this:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">&lt;script type=&quot;text/javascript&quot; src=&quot;jquery-1.3.2.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;jquery.backgroundPosition.js&quot;&gt;&lt;/script&gt;
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #003366; font-weight: bold;">function</span> layer1<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.layer-1'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>backgroundPosition<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;(0 -482px)&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">12000</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;linear&quot;</span><span style="color: #009900;">&#41;</span>
		     .<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>backgroundPosition<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;(0 0)&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;linear&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	setTimeout<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;layer1()&quot;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">12000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> layer3<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.layer-3'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>backgroundPosition<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;(0 -780px)&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">12000</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;linear&quot;</span><span style="color: #009900;">&#41;</span>
		     .<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>backgroundPosition<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;(0 0)&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;linear&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	setTimeout<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;layer3()&quot;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">12000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> layer4<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.layer-4'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>backgroundPosition<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;(0 -1000px)&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">12000</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;linear&quot;</span><span style="color: #009900;">&#41;</span>
		     .<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>backgroundPosition<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;(0 0)&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;linear&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	setTimeout<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;layer4()&quot;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">12000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
 $<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
 	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#header&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;span class=&quot;layer-1&quot;&gt;&lt;/span&gt;&lt;span class=&quot;layer-3&quot;&gt;&lt;/span&gt;&lt;span class=&quot;layer-4&quot;&gt;&lt;/span&gt;'</span><span style="color: #009900;">&#41;</span>
		     .<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;span&quot;</span><span style="color: #009900;">&#41;</span>
		     .<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;1&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">2000</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">500</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #006600; font-style: italic;">//Firefox Needs us to set the backgroundPosition manually for the animation to work</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.layer-1'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;backgroundPosition&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;0 0&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.layer-3'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;backgroundPosition&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;0 0&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.layer-4'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;backgroundPosition&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;0 0&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
&nbsp;
	layer1<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	layer3<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	layer4<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
 <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Note that we have to set the <code>backgroundPosition</code> to &#8220;0 0&#8243; manually for Firefox to play nice.</p>
<h3>Falling is Easy</h3>
<p>And that&#8217;s all she wrote! Check out <a href="/wp-content/uploads/2009/06/parallax.html">the demo</a> to see the effect in action. And be sure to stay tuned for more exciting tutorials.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://perquisitedesign.com/blog/make-a-snazzy-scrolling-header/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fancy New Website</title>
		<link>http://perquisitedesign.com/blog/fancy-new-website</link>
		<comments>http://perquisitedesign.com/blog/fancy-new-website#comments</comments>
		<pubDate>Fri, 26 Jun 2009 18:40:01 +0000</pubDate>
		<dc:creator>omtay38</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://perquisitedesign.com/?p=206</guid>
		<description><![CDATA[It seems sort of self-serving to post about one&#8217;s own blog on that blog, but here goes! Welcome, salutations and other good wishes! Perquisite Design is up and running. You have found yourself on the blog section of my site. Here will be posted web-design tutorials and other ramblings about other fancy topics.

Tell me what [...]]]></description>
			<content:encoded><![CDATA[<p>It seems sort of self-serving to post about one&#8217;s own blog <i>on</i> that blog, but here goes! Welcome, salutations and other good wishes! Perquisite Design is up and running. You have found yourself on the blog section of my site. Here will be posted web-design tutorials and other ramblings about other fancy topics.</p>
<p><span id="more-206"></span><br />
<div id="attachment_212" class="wp-caption alignleft" style="width: 620px"><img src="http://perquisitedesign.com/wp-content/uploads/2009/06/watching.png" alt="I&#039;ve got my eye on you" title="Eyes" width="610" height="90" class="size-full wp-image-212" /><p class="wp-caption-text">I've got my eye on you</p></div></p>
<h3>Tell me what you think!</h3>
<p>I&#8217;m just a lowly website developer (with a bad sense of spelling). Let me know what you think! Is everything working right? Something you think looks cool? Something spelled wrong? Have at it!</p>
]]></content:encoded>
			<wfw:commentRss>http://perquisitedesign.com/blog/fancy-new-website/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 5.996 seconds -->
