<?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>La Miscela &#187; jQuery</title>
	<atom:link href="http://www.lamiscela.net/tag/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lamiscela.net</link>
	<description>Everything joined and mixed</description>
	<lastBuildDate>Tue, 17 Aug 2010 00:59:29 +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>Windows Live Brazil custom menu</title>
		<link>http://www.lamiscela.net/2009/12/12/windows-live-brazil-custom-menu/</link>
		<comments>http://www.lamiscela.net/2009/12/12/windows-live-brazil-custom-menu/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 13:14:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://www.lamiscela.net/?p=409</guid>
		<description><![CDATA[Hi people, to some weeks ago the Gringo released your most recent work to Microsoft Brazil a beautiful and accessible website for Windows Live product. Gringo is most known for their amazing works using Flash technology, but this one was a big surprise for those that follow your work.
I liked many things on this website, but [...]]]></description>
			<content:encoded><![CDATA[<p>Hi people, to some weeks ago the <a href="http://www.gringo.nu">Gringo</a> released your most recent work to <a href="http://www.microsoft.com.br" target="_blank">Microsoft Brazil</a> a beautiful and accessible website for <a href="http://www.windowslive.com.br" target="_blank">Windows Live</a> product. <a href="http://www.gringo.nu/">Gringo</a> is most known for their amazing works using Flash technology, but this one was a big surprise for those that follow your work.</p>
<p>I liked many things on this website, but the "Todos Produtos" menu was who took more my attention. Inspired on it I tried build a menu like it using just <a href="http://www.jquery.com" target="_blank">jQuery</a>, html and css.<span id="more-409"></span></p>
<p>The secret is on css and html, it are who do go give all structure for jQuery work, in addition of the jQuery, i used some others plugins to achieve the result more close of original. They are <a href="http://www.jqueryui.com/" target="_blank">jQuery UI</a> and <a href="http://gsgd.co.uk/sandbox/jquery/easing/" target="_blank">jQuery Easing</a>.</p>
<p>This's all jQuery code necessary:</p>
<pre class="brush: plain; wrap-lines: false; toolbar: true;">
$(function() {

$("#geral dl dt").addClass('open').toggle(
	function() {
		$("#geral dl").animate( { height: 160 }, { duration: 500, easing: 'easeOutQuint' } );
		$("#geral dl dt").removeClass('open').addClass('close');
	},
	function() {
		$("#geral dl").animate( { height: 34 }, { duration: 500, easing: 'easeOutQuint' } );
		$("#geral dl dt").removeClass('close').addClass('open');
	}
);

$("#geral dl").hover(null, function() {
	$(this).animate( { opacity: 1 }, 300).animate( { height: 34 }, { duration: 500, easing: 'easeOutQuint' } );
	$("#geral dl dt").removeClass('close').addClass('open');
});

$("#geral dl dd").hover(onOver, onOut);

});

function onOver () {
	$(this).animate( { backgroundColor: "#00aeef" }, 200 )
	$(this).children().animate( { color: "#ffffff", left: '5px' }, 200);
	$(this).next().animate( { opacity: 1, left: '189px' }, 200 );
}

function onOut() {
	$(this).animate( { backgroundColor: "#e7e7e7" }, 200 )
	$(this).children().animate( { color: "#333333", left: '10px' }, 200);
	$(this).next().animate( { opacity: 0, left: '-100px' }, 50 );
}
</pre>
<p>If you're curious of how the rest of the code should be for get this menu, does download of the <a href="http://www.lamiscela.net/lab/wlive_menulike.zip" target="_self">source code</a> and look with your own eyes.</p>
<p>You still can see it in action <a href="http://www.lamiscela.net/lab/wlive_menulike/" target="_blank">here</a>. ( Tested on Safari 4.04 Firefox 3.5.5 and Camino 2.0.1  for mac )</p>
<p>Bye.</p>
<p>Note: This source code haven't intention of support all browsers, it's just a experiment, if you want use this code feel yourself free to download, improve it and use him. Any support not will be provide.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lamiscela.net/2009/12/12/windows-live-brazil-custom-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
