<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: How to make a Slide and Hide with Yahoo YUI</title>
	<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>
	<pubDate>Fri, 21 Nov 2008 09:26:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</generator>
		<item>
		<title>By: jc</title>
		<link>http://blog.jc21.com/2007-01-19/how-to-make-a-slide-and-hide-with-yahoo-yui/#comment-256</link>
		<dc:creator>jc</dc:creator>
		<pubDate>Wed, 07 Feb 2007 22:42:44 +0000</pubDate>
		<guid>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:
  "var anim = new YAHOO.util.Anim('slider',{width:{to:0}},1,YAHOO.util.Easing.easeIn);"
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 "YAHOO.util.Easing.easeIn". 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 'hiding' 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 'squeeze' the div's height or width and allowing the contents of this div to overflow and hide itself. So in effect the div isn't moving, it'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(&#8217;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 &#8217;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-253</link>
		<dc:creator>James</dc:creator>
		<pubDate>Wed, 07 Feb 2007 16:38:07 +0000</pubDate>
		<guid>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-252</link>
		<dc:creator>James</dc:creator>
		<pubDate>Wed, 07 Feb 2007 16:34:30 +0000</pubDate>
		<guid>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>
