<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to make a Slide and Hide with Yahoo YUI</title>
	<atom:link href="http://blog.jc21.com/2007-01-19/how-to-make-a-slide-and-hide-with-yahoo-yui/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jc21.com/2007-01-19/how-to-make-a-slide-and-hide-with-yahoo-yui/</link>
	<description>A snapshot of my more professional life</description>
	<lastBuildDate>Thu, 24 Jun 2010 13:46:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: james</title>
		<link>http://blog.jc21.com/2007-01-19/how-to-make-a-slide-and-hide-with-yahoo-yui/comment-page-1/#comment-8030</link>
		<dc:creator>james</dc:creator>
		<pubDate>Wed, 13 May 2009 15:58:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jc21.com/2007-01-19/how-to-make-a-slide-and-hide-with-yahoo-yui/#comment-8030</guid>
		<description>&lt;a href=&quot;#comment-8029&quot; rel=&quot;nofollow&quot;&gt;@james&lt;/a&gt; 

please ignore my last comment - figured it out in the css. thanks</description>
		<content:encoded><![CDATA[<p><a href="#comment-8029" rel="nofollow">@james</a> </p>
<p>please ignore my last comment &#8211; figured it out in the css. thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: james</title>
		<link>http://blog.jc21.com/2007-01-19/how-to-make-a-slide-and-hide-with-yahoo-yui/comment-page-1/#comment-8029</link>
		<dc:creator>james</dc:creator>
		<pubDate>Wed, 13 May 2009 15:35:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jc21.com/2007-01-19/how-to-make-a-slide-and-hide-with-yahoo-yui/#comment-8029</guid>
		<description>Hi, 

how do i change the direction of the animation so that it scrolls out from the left to the right?

many thanks</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>how do i change the direction of the animation so that it scrolls out from the left to the right?</p>
<p>many thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jc</title>
		<link>http://blog.jc21.com/2007-01-19/how-to-make-a-slide-and-hide-with-yahoo-yui/comment-page-1/#comment-256</link>
		<dc:creator>jc</dc:creator>
		<pubDate>Wed, 07 Feb 2007 22:42:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jc21.com/2007-01-19/how-to-make-a-slide-and-hide-with-yahoo-yui/#comment-256</guid>
		<description>Firstly, the speed of the transition is found in the animation variable declaration:
  &quot;var anim = new YAHOO.util.Anim(&#039;slider&#039;,{width:{to:0}},1,YAHOO.util.Easing.easeIn);&quot;
Where the 3rd value is 1, that is the time in seconds for the animation. This can be a decimal value aswell. There are other transition types aswell besides &quot;YAHOO.util.Easing.easeIn&quot;. These are:

 * YAHOO.util.Easing.backBoth
 * YAHOO.util.Easing.backIn
 * YAHOO.util.Easing.backOut
 * YAHOO.util.Easing.bounceBoth
 * YAHOO.util.Easing.bounceIn
 * YAHOO.util.Easing.bounceOut
 * YAHOO.util.Easing.easeBoth
 * YAHOO.util.Easing.easeBothStrong
 * YAHOO.util.Easing.easeInStrong
 * YAHOO.util.Easing.easeNone
 * YAHOO.util.Easing.easeOut
 * YAHOO.util.Easing.easeOutStrong
 * YAHOO.util.Easing.elasticBoth
 * YAHOO.util.Easing.elasticIn
 * YAHOO.util.Easing.elasticOut

Try them out to see the effect.

As for the 2nd question, about sliding a div behind another: I prefer not to use this approach of &#039;hiding&#039; one div behind another and applying a z-index higher for the static div. It can have unpredictable results between browsers. This is why I opt to &#039;squeeze&#039; the div&#039;s height or width and allowing the contents of this div to overflow and hide itself. So in effect the div isn&#039;t moving, it&#039;s just shrinking.</description>
		<content:encoded><![CDATA[<p>Firstly, the speed of the transition is found in the animation variable declaration:<br />
  &#8220;var anim = new YAHOO.util.Anim(&#8216;slider&#8217;,{width:{to:0}},1,YAHOO.util.Easing.easeIn);&#8221;<br />
Where the 3rd value is 1, that is the time in seconds for the animation. This can be a decimal value aswell. There are other transition types aswell besides &#8220;YAHOO.util.Easing.easeIn&#8221;. These are:</p>
<p> * YAHOO.util.Easing.backBoth<br />
 * YAHOO.util.Easing.backIn<br />
 * YAHOO.util.Easing.backOut<br />
 * YAHOO.util.Easing.bounceBoth<br />
 * YAHOO.util.Easing.bounceIn<br />
 * YAHOO.util.Easing.bounceOut<br />
 * YAHOO.util.Easing.easeBoth<br />
 * YAHOO.util.Easing.easeBothStrong<br />
 * YAHOO.util.Easing.easeInStrong<br />
 * YAHOO.util.Easing.easeNone<br />
 * YAHOO.util.Easing.easeOut<br />
 * YAHOO.util.Easing.easeOutStrong<br />
 * YAHOO.util.Easing.elasticBoth<br />
 * YAHOO.util.Easing.elasticIn<br />
 * YAHOO.util.Easing.elasticOut</p>
<p>Try them out to see the effect.</p>
<p>As for the 2nd question, about sliding a div behind another: I prefer not to use this approach of &#8216;hiding&#8217; one div behind another and applying a z-index higher for the static div. It can have unpredictable results between browsers. This is why I opt to &#8216;squeeze&#8217; the div&#8217;s height or width and allowing the contents of this div to overflow and hide itself. So in effect the div isn&#8217;t moving, it&#8217;s just shrinking.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://blog.jc21.com/2007-01-19/how-to-make-a-slide-and-hide-with-yahoo-yui/comment-page-1/#comment-253</link>
		<dc:creator>James</dc:creator>
		<pubDate>Wed, 07 Feb 2007 16:38:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jc21.com/2007-01-19/how-to-make-a-slide-and-hide-with-yahoo-yui/#comment-253</guid>
		<description>I am also curious as to how to set one sliding div behind another without interfering one or another when they open and close.  I have tried many things including the z-index but to no avail.

This is some great code.  Thanx for posting it.

James</description>
		<content:encoded><![CDATA[<p>I am also curious as to how to set one sliding div behind another without interfering one or another when they open and close.  I have tried many things including the z-index but to no avail.</p>
<p>This is some great code.  Thanx for posting it.</p>
<p>James</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://blog.jc21.com/2007-01-19/how-to-make-a-slide-and-hide-with-yahoo-yui/comment-page-1/#comment-252</link>
		<dc:creator>James</dc:creator>
		<pubDate>Wed, 07 Feb 2007 16:34:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jc21.com/2007-01-19/how-to-make-a-slide-and-hide-with-yahoo-yui/#comment-252</guid>
		<description>I am curious as to how to change the speed of the div opening and closing.

Thanx</description>
		<content:encoded><![CDATA[<p>I am curious as to how to change the speed of the div opening and closing.</p>
<p>Thanx</p>
]]></content:encoded>
	</item>
</channel>
</rss>
