<?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>Tim Banks &#187; Walkthrough</title>
	<atom:link href="http://thetimbanks.com/category/walkthrough/feed/" rel="self" type="application/rss+xml" />
	<link>http://thetimbanks.com</link>
	<description></description>
	<lastBuildDate>Mon, 20 Feb 2012 04:33:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Recreating Google+ Expanding Image Stack</title>
		<link>http://thetimbanks.com/2011/09/20/recreating-google-expanding-image-stack/</link>
		<comments>http://thetimbanks.com/2011/09/20/recreating-google-expanding-image-stack/#comments</comments>
		<pubDate>Tue, 20 Sep 2011 14:34:45 +0000</pubDate>
		<dc:creator>Tim Banks</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Walkthrough]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[webkit]]></category>

		<guid isPermaLink="false">http://thetimbanks.com/?p=194</guid>
		<description><![CDATA[Skip straight to the demo After taking some time to browse around Google+ I noticed a cool effect on the albums page when hovering over an album. If the album had multiple images in it, the stack would expand to show the first 3 images inside the album. You can see an example of it [...]]]></description>
			<content:encoded><![CDATA[<p><a href="/demos/GooglePlusImage/">Skip straight to the demo</a></p>
<p>After taking some time to browse around Google+ I noticed a cool effect on the albums page when hovering over an album. If the album had multiple images in it, the stack would expand to show the first 3 images inside the album. You can see an example of it here: <a href="https://plus.google.com/photos/105135327491673313070/albums">https://plus.google.com/photos/105135327491673313070/albums</a>.</p>
<p>I thought it would be neat to try and reproduce this effect. This example will work in Chrome, Firefox 4+, and Safari 4+.</p>
<p><strong>Step 1 &#8211; Get images</strong></p>
<p>The only thing we need to do in step 1 is get 3 images of the same size and put them into a block element.  I grabbed 3 images from my Google+ account and put them in a div with the id of &#8220;photo-stack&#8221;.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;div id=&quot;photo-stack&quot;&gt;
    &lt;img src=&quot;https://lh3.googleusercontent.com/-khtZ0GBqcOI/Th2kD8vv0ZE/AAAAAAAAACU/rd3t2O6QI-o/s195-c/BVI2008&quot; /&gt;
    &lt;img src=&quot;https://lh3.googleusercontent.com/-ZpghGAz-jZE/Th2kECfNChI/AAAAAAAAACI/VAtLWAuUbf0/s195-c/photo.jpg&quot; /&gt;
    &lt;img src=&quot;https://lh4.googleusercontent.com/-xcrH8Z9qHqI/Th2kEMhqQ1I/AAAAAAAAACA/jL8ZZTTpqA4/s195-c/photo.jpg&quot; /&gt;
&lt;/div&gt;
</pre>
<p><a href="/demos/GooglePlusImage/step1.html">View Step 1</a></p>
<p><strong>Step 2 &#8211; Stacking</strong></p>
<p>Now that we have our 3 images let stack them on top of each other.  This is accomplished by positioning each of them absolutely on top of each other.</p>
<pre class="brush: css; title: ; notranslate">

#photo-stack { position: relative;}

#photo-stack img { position: absolute; top: 0; left: 0;}
</pre>
<p>That looks good, but I want the first image in the DOM to appear on top.  In that case we need to set the z-index of each image.  I am going to use the nth-child property so we don&#8217;t have to add classes to each image.</p>
<pre class="brush: css; title: ; notranslate">

#photo-stack img:nth-child(1) { z-index: 3;}

#photo-stack img:nth-child(2) { z-index: 2;}

#photo-stack img:nth-child(3) { z-index: 1;}
</pre>
<p>Now the first image is on the top!</p>
<p><a href="/demos/GooglePlusImage/step2.html">View Step 2</a></p>
<p><strong>Step 3 &#8211; Moving</strong></p>
<p>Let&#8217;s start working on the animation.  The animation has 3 parts to it: movement of the images, rotation of the images, and the size of the images.</p>
<p>We can handle the movement of the images by using the translate value of the transform property.  We are going to use the nth-child property just like we did in the last step in order to target each image individually.</p>
<p>Translate takes 2 values for the x and y movement.  Since the second image isn&#8217;t moving we are only going to move the first and last images.</p>
<pre class="brush: css; title: ; notranslate">

#photo-stack:hover img:nth-child(1) {
    -webkit-transform: translate(-50px, 0px);
}
#photo-stack:hover img:nth-child(3) {
    -webkit-transform: translate(50px, 0px);
}
</pre>
<p><a href="/demos/GooglePlusImage/step3.html">View Step 3</a></p>
<p><strong>Step 4 &#8211; Rotating</strong></p>
<p>Now that we have the images moving apart we can rotate the outer image.  Rotate only takes 1 argument for the amount of degrees you want to rotate the element.  Once again the middle image is not being rotated so we will not worry about it.</p>
<pre class="brush: css; title: ; notranslate">

#photo-stack:hover img:nth-child(1) {
    -webkit-transform: rotate(5deg);
}
#photo-stack:hover img:nth-child(3) {
    -webkit-transform: rotate(-5deg);
}
</pre>
<p>We are getting close!  <a href="/demos/GooglePlusImage/step4.html">View Step 4</a></p>
<p><strong>Step 5 &#8211; Scaling</strong></p>
<p>The images need to grow a little in size when they are spreading apart.  By using the scale property we can pass in a value to change the size of the image (1 being 100%).</p>
<pre class="brush: css; title: ; notranslate">

#photo-stack:hover img:nth-child(1) {
    -webkit-transform: scale(1.1);
}
#photo-stack:hover img:nth-child(2) {
    -webkit-transform: scale(1.1);
}
#photo-stack:hover img:nth-child(3) {
    -webkit-transform: scale(1.1);
}
</pre>
<p><a href="/demos/GooglePlusImage/step5.html">View Step 5</a></p>
<p><strong>Step 6 &#8211; Animating</strong></p>
<p>In order to get the transforms to animate when hovering, only 1 line of code needs to be added.  The -webkit-transition line takes 3 arguments: property to animate, amount of time, and animation timeline.  In our case we want to animate the -webkit-transorm property for .25 seconds and have a linear timeline.</p>
<pre class="brush: css; title: ; notranslate">

#photo-stack img {  -webkit-transition: -webkit-transform .25s linear;}
</pre>
<p><a href="/demos/GooglePlusImage/step6.html">View Step 6</a></p>
<p><strong>Step 7 &#8211; Cleanup</strong></p>
<p>The look can be cleaned up a little by applying some additional styles.  Now it looks like a real stack of photos!</p>
<p><a href="/demos/GooglePlusImage/">View Final Demo</a></p>
<p>Let me know what you thought of the tutorial or if you put this to use on one of your sites!</p>
]]></content:encoded>
			<wfw:commentRss>http://thetimbanks.com/2011/09/20/recreating-google-expanding-image-stack/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Changing the battery in my 2004 Infiniti G35 6MT</title>
		<link>http://thetimbanks.com/2010/01/05/changing-the-battery-in-my-2004-infiniti-g35-6mt/</link>
		<comments>http://thetimbanks.com/2010/01/05/changing-the-battery-in-my-2004-infiniti-g35-6mt/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 01:48:00 +0000</pubDate>
		<dc:creator>Tim Banks</dc:creator>
				<category><![CDATA[Infiniti]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Walkthrough]]></category>
		<category><![CDATA[battery]]></category>

		<guid isPermaLink="false">http://thetimbanks.com/?p=46</guid>
		<description><![CDATA[I recently replaced my battery in my 2004 Infiniti G35 6MT and found the lack of instructions annoying so I am posting the steps I took to replace the battery.  I hope this helps others that either don&#8217;t live next to an Infiniti dealer or just want to do it themselves (I fall into both [...]]]></description>
			<content:encoded><![CDATA[<p>I recently replaced my battery in my 2004 Infiniti G35 6MT and found the lack of instructions annoying so I am posting the steps I took to replace the battery.  I hope this helps others that either don&#8217;t live next to an Infiniti dealer or just want to do it themselves (I fall into both categories).  Any image can be clicked on the get a larger version.</p>
<p><strong>Step 1</strong></p>
<p>Remove the rubber lining around the battery cover that is closest to the windshield</p>
<div id="attachment_48" class="wp-caption aligncenter" style="width: 310px"><a href="http://thetimbanks.com/wp-content/uploads/2010/01/Step1.jpg"><img class="size-medium wp-image-48" title="Step 1 - Remove rubber lining" src="http://thetimbanks.com/wp-content/uploads/2010/01/Step1-300x268.jpg" alt="" width="300" height="268" /></a><p class="wp-caption-text">Remove the rubber lining from the edge of the cover</p></div>
<p style="text-align: center;">
<p><strong>Step 2</strong></p>
<p>Remove the pins from the battery cover using a flathead screw driver.  These should pop out rather easily. There should be 5 that you have to remove.</p>
<div id="attachment_49" class="wp-caption aligncenter" style="width: 235px"><a href="http://thetimbanks.com/wp-content/uploads/2010/01/photo-3-4.jpg"><img class="size-medium wp-image-49" title="Step 2 - 5 pins to remove" src="http://thetimbanks.com/wp-content/uploads/2010/01/photo-3-4-225x300.jpg" alt="" width="225" height="300" /></a><p class="wp-caption-text">The 5 holes where there are pins to remove</p></div>
<div id="attachment_50" class="wp-caption aligncenter" style="width: 235px"><a href="http://thetimbanks.com/wp-content/uploads/2010/01/photo-3.jpg"><img class="size-medium wp-image-50" title="Step 2 - Use a flathead screwdriver to remove the pins" src="http://thetimbanks.com/wp-content/uploads/2010/01/photo-3-225x300.jpg" alt="" width="225" height="300" /></a><p class="wp-caption-text">Use a flathead screwdriver to remove the pins</p></div>
<p><strong>Step 3</strong></p>
<p>Remove the battery terminals from the battery using either a wrench or a socket.  The negative cord should be easy to move out of the way, but the positive cord was a little tougher since it had some extra hardware on it.</p>
<div id="attachment_51" class="wp-caption aligncenter" style="width: 235px"><a href="http://thetimbanks.com/wp-content/uploads/2010/01/photo-4.jpg"><img class="size-medium wp-image-51" title="Step 3 - The negative terminal has been removed and moved to the side" src="http://thetimbanks.com/wp-content/uploads/2010/01/photo-4-225x300.jpg" alt="" width="225" height="300" /></a><p class="wp-caption-text">The negative terminal has been removed and moved to the side</p></div>
<div id="attachment_52" class="wp-caption aligncenter" style="width: 235px"><a href="http://thetimbanks.com/wp-content/uploads/2010/01/photo-5-2.jpg"><img class="size-medium wp-image-52" title="Step 3 - Preparing to remove the positive terminal" src="http://thetimbanks.com/wp-content/uploads/2010/01/photo-5-2-225x300.jpg" alt="" width="225" height="300" /></a><p class="wp-caption-text">Preparing to remove the positive terminal</p></div>
<p><strong>Step 4</strong></p>
<p>Unplug the two plugs from the bottom of the positive cord in order to maneuver it out of the way a little better.  Using a flatehead screwdriver push in on the little bracket that is holding each plug in place.</p>
<div id="attachment_53" class="wp-caption aligncenter" style="width: 235px"><a href="http://thetimbanks.com/wp-content/uploads/2010/01/photo.jpg"><img class="size-medium wp-image-53" title="Step 4 - Push the clip in to remove the plug" src="http://thetimbanks.com/wp-content/uploads/2010/01/photo-225x300.jpg" alt="" width="225" height="300" /></a><p class="wp-caption-text">Push the clip in to remove the plug</p></div>
<div id="attachment_54" class="wp-caption aligncenter" style="width: 310px"><a href="http://thetimbanks.com/wp-content/uploads/2010/01/photo-2.jpg"><img class="size-medium wp-image-54" title="Step 4 - The first plug has been removed" src="http://thetimbanks.com/wp-content/uploads/2010/01/photo-2-300x225.jpg" alt="" width="300" height="225" /></a><p class="wp-caption-text">The first plug has been removed</p></div>
<div id="attachment_55" class="wp-caption aligncenter" style="width: 310px"><a href="http://thetimbanks.com/wp-content/uploads/2010/01/photo-5.jpg"><img class="size-medium wp-image-55" title="Step 4 - Both plugs have been removed and the main terminal is moved to the side" src="http://thetimbanks.com/wp-content/uploads/2010/01/photo-5-300x225.jpg" alt="" width="300" height="225" /></a><p class="wp-caption-text">Both plugs have been removed and the main terminal is moved to the side</p></div>
<p><strong>Step 5</strong></p>
<p>Unbolt the crossbar holding the battery in place.  I only unbolted the end that is clearly visible and then unhooked the other end by twisting it around until it came unhooked.</p>
<div id="attachment_56" class="wp-caption aligncenter" style="width: 310px"><a href="http://thetimbanks.com/wp-content/uploads/2010/01/photo-31.jpg"><img class="size-medium wp-image-56" title="Step 5 - Unbolt the crossbar holding the battery in place" src="http://thetimbanks.com/wp-content/uploads/2010/01/photo-31-300x225.jpg" alt="" width="300" height="225" /></a><p class="wp-caption-text">Unbolt the crossbar holding the battery in place</p></div>
<p><strong>Step 6</strong></p>
<p>Remove the battery.  This can be tricky since there is very little clearance.  You may need to bend the plastic covering a little in order to have enough room to get it out.</p>
<div id="attachment_57" class="wp-caption aligncenter" style="width: 310px"><a href="http://thetimbanks.com/wp-content/uploads/2010/01/photo-21.jpg"><img class="size-medium wp-image-57" title="Step 6 - Very little clearance to move the battery out" src="http://thetimbanks.com/wp-content/uploads/2010/01/photo-21-300x225.jpg" alt="" width="300" height="225" /></a><p class="wp-caption-text">Very little clearance to move the battery out</p></div>
<p>Now that you have the battery out, you should be able to reverse the steps to put everything back together.  Back in step 1 when you are replacing the pins, make sure to slide the pin up a little before pressing it into the hole.  The image below should help out.</p>
<div id="attachment_58" class="wp-caption aligncenter" style="width: 235px"><a href="http://thetimbanks.com/wp-content/uploads/2010/01/photo-2-3.jpg"><img class="size-medium wp-image-58" title="Pin position before reinserting it" src="http://thetimbanks.com/wp-content/uploads/2010/01/photo-2-3-225x300.jpg" alt="" width="225" height="300" /></a><p class="wp-caption-text">Keep the &quot;disc&quot; of the pin around the middle when you insert it into the hole</p></div>
<p>After I got everything hooked back up I fired up the car and I was back on the road.</p>
]]></content:encoded>
			<wfw:commentRss>http://thetimbanks.com/2010/01/05/changing-the-battery-in-my-2004-infiniti-g35-6mt/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
	</channel>
</rss>

