<?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>raphael haefeli &#124; portland, oregon freelance web design and development &#187; jQuery</title>
	<atom:link href="http://www.raphaelhaefeli.com/archives/jquery/feed" rel="self" type="application/rss+xml" />
	<link>http://www.raphaelhaefeli.com</link>
	<description>Home of Raphael Haefeli</description>
	<lastBuildDate>Mon, 17 Oct 2011 18:01:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to Create a Elastic Thumbnail Menu with CSS and jQuery</title>
		<link>http://www.raphaelhaefeli.com/css-images/thumbnail-menu-css-jquery</link>
		<comments>http://www.raphaelhaefeli.com/css-images/thumbnail-menu-css-jquery#comments</comments>
		<pubDate>Tue, 20 Apr 2010 06:35:09 +0000</pubDate>
		<dc:creator>Raphael</dc:creator>
				<category><![CDATA[CSS Images]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.raphaelhaefeli.com/?p=352</guid>
		<description><![CDATA[I was going around the web looking for some interesting tutorials and found this one I would like to share. This is an elastic thumbnail menu which combines HTML, CSS and jQuery to create a cool zoom effect and expand upwards when an image is hovered over. The HTML Code (plain and simple): &#60;div id="menuwrapper"&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>I was going around the web looking for some interesting tutorials and found this one I would like to share. This is an elastic thumbnail menu which combines HTML, CSS and jQuery to create a cool zoom effect and expand upwards when an image is hovered over.</p>

<h3>The HTML Code (plain and simple):</h3>

<pre><code >&lt;div id="menuwrapper"&gt;
	&lt;div id="menu"&gt;
		&lt;a href="#" class="menuitem"&gt;&lt;img src="image.jpg"/&gt;&lt;/a&gt;
	&lt;/div&gt;
&lt;/div&gt;</code></pre>

<h3>The CSS Code:</h3>
<p>This menu will be a bit different from conventional menus and the when the user hovers over the thumbnail, the image will expand to the right and upwards.</p>

<p>The main piece to acheive this effect is <span class="simplecode">position:fixed;</span>, which keeps the thumbnails aligned to the bottom.</p>

<pre><code >#menuwrapper{ position:relative; height:210px; }

#menu{position:absolute; bottom:0;}

.menuitem{ position:fixed relative; bottom:0px; display:inline-block; }

img { -ms-interpolation-mode: bicubic; }</code></pre>

<p>Note that for this effect to work in Internet Explorer, we need to add <span class="simplecode">img { -ms-interpolation-mode: bicubic; }</span> to our CSS file.</p>

<h3>The jQuery Code:</h3>
<pre><code >$(document).ready(function(){
	$('.menuitem img').animate({width: 100}, 0);
    //Set all menu items to smaller size

	$('.menuitem').mouseover(function(){ //When mouse over menu item

		gridimage = $(this).find('img'); //Define target as a variable
		gridimage.stop().animate({width: 200}, 150);
    	//Animate image expanding to original size

	}).mouseout(function(){
    //When mouse no longer over menu item

		gridimage.stop().animate({width: 100}, 150);
        //Animate image back to smaller size

	});
});
</code></pre>

<h3><a href="http://www.raphaelhaefeli.com/demos/examples/elastic/index.html" target="_blank">See the demo here</a></h3>

<p>Source: <a href="http://buildinternet.com/2009/09/sproing-make-an-elastic-thumbnail-menu/" target="_blank">build internet</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.raphaelhaefeli.com/css-images/thumbnail-menu-css-jquery/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

