<?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: FX 2.0: The Full-Featured Animation Framework</title>
	<atom:link href="http://ryanmorr.com/archives/fx-2-0-the-full-featured-animation-framework/feed" rel="self" type="application/rss+xml" />
	<link>http://ryanmorr.com/archives/fx-2-0-the-full-featured-animation-framework</link>
	<description>JavaScript, CSS, and Web Apps</description>
	<lastBuildDate>Tue, 24 Aug 2010 12:22:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ryan Morr</title>
		<link>http://ryanmorr.com/archives/fx-2-0-the-full-featured-animation-framework/comment-page-1#comment-1005</link>
		<dc:creator>Ryan Morr</dc:creator>
		<pubDate>Wed, 30 Jun 2010 15:29:46 +0000</pubDate>
		<guid isPermaLink="false">http://ryanmorr.com/?p=1443#comment-1005</guid>
		<description>@Andy

That&#039;s funny, I seem to get conflicting results in both my research and my testing for this. You may have to first set the opacity in CSS before you animate it, that fixed a similar problem for me in IE before. Quirksmode (http://www.quirksmode.org/css/opacity.html) mentions the very same thing you do, however both methods seem to work for me when I visit the page in IE8? 

In any event, I suppose I will add the extra support in the next version just to be sure. Better safe than sorry right.

Thanks for the heads up!</description>
		<content:encoded><![CDATA[<p>@Andy</p>
<p>That&#8217;s funny, I seem to get conflicting results in both my research and my testing for this. You may have to first set the opacity in CSS before you animate it, that fixed a similar problem for me in IE before. Quirksmode (<a href="http://www.quirksmode.org/css/opacity.html" rel="nofollow">http://www.quirksmode.org/css/opacity.html</a>) mentions the very same thing you do, however both methods seem to work for me when I visit the page in IE8? </p>
<p>In any event, I suppose I will add the extra support in the next version just to be sure. Better safe than sorry right.</p>
<p>Thanks for the heads up!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://ryanmorr.com/archives/fx-2-0-the-full-featured-animation-framework/comment-page-1#comment-960</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Fri, 25 Jun 2010 04:18:10 +0000</pubDate>
		<guid isPermaLink="false">http://ryanmorr.com/?p=1443#comment-960</guid>
		<description>Hey Ryan, great framework!

One thing though... IE 8 throws an error when trying to animate an element&#039;s opacity. I recently came across http://qfox.nl/notes/61, which explains that IE8 uses e.filters.item(&quot;DXImageTransform.Microsoft.Alpha&quot;).opacity instead of el.filters(&#039;alpha&#039;).opacity. The solution would involve changing from:

var opacity = el.filters(&#039;alpha&#039;).opacity;
return isNaN(opacity) ? 1 : (opacity ? opacity / 100 : 0);

to (http://qfox.nl/notes/61):

var opacity;
try {   // IE 8
    opacity = el.filters.item(&quot;DXImageTransform.Microsoft.Alpha&quot;).opacity / 100;
} catch (er) {
    try {   // IE 7
        opacity = el.filters(&quot;alpha&quot;).opacity / 100;
    } catch (er2) {
        opacity = 1;
    }
}
return opacity;</description>
		<content:encoded><![CDATA[<p>Hey Ryan, great framework!</p>
<p>One thing though&#8230; IE 8 throws an error when trying to animate an element&#8217;s opacity. I recently came across <a href="http://qfox.nl/notes/61" rel="nofollow">http://qfox.nl/notes/61</a>, which explains that IE8 uses e.filters.item(&#8220;DXImageTransform.Microsoft.Alpha&#8221;).opacity instead of el.filters(&#8216;alpha&#8217;).opacity. The solution would involve changing from:</p>
<p>var opacity = el.filters(&#8216;alpha&#8217;).opacity;<br />
return isNaN(opacity) ? 1 : (opacity ? opacity / 100 : 0);</p>
<p>to (<a href="http://qfox.nl/notes/61" rel="nofollow">http://qfox.nl/notes/61</a>):</p>
<p>var opacity;<br />
try {   // IE 8<br />
    opacity = el.filters.item(&#8220;DXImageTransform.Microsoft.Alpha&#8221;).opacity / 100;<br />
} catch (er) {<br />
    try {   // IE 7<br />
        opacity = el.filters(&#8220;alpha&#8221;).opacity / 100;<br />
    } catch (er2) {<br />
        opacity = 1;<br />
    }<br />
}<br />
return opacity;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Morr</title>
		<link>http://ryanmorr.com/archives/fx-2-0-the-full-featured-animation-framework/comment-page-1#comment-574</link>
		<dc:creator>Ryan Morr</dc:creator>
		<pubDate>Mon, 07 Dec 2009 17:18:38 +0000</pubDate>
		<guid isPermaLink="false">http://ryanmorr.com/?p=1443#comment-574</guid>
		<description>@Thimo

Thats right, I couldn&#039;t think of a valid use case for starting an element with say a pixel value and then animating it using em? I figure it would be best practice to define the starting value of the element in CSS using the units you will animate the element with.</description>
		<content:encoded><![CDATA[<p>@Thimo</p>
<p>Thats right, I couldn&#8217;t think of a valid use case for starting an element with say a pixel value and then animating it using em? I figure it would be best practice to define the starting value of the element in CSS using the units you will animate the element with.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thimo</title>
		<link>http://ryanmorr.com/archives/fx-2-0-the-full-featured-animation-framework/comment-page-1#comment-573</link>
		<dc:creator>Thimo</dc:creator>
		<pubDate>Mon, 07 Dec 2009 17:11:08 +0000</pubDate>
		<guid isPermaLink="false">http://ryanmorr.com/?p=1443#comment-573</guid>
		<description>You are right. The only limitation is, that you are not able to change the initial unit on IE. What you want to prevent anyway...</description>
		<content:encoded><![CDATA[<p>You are right. The only limitation is, that you are not able to change the initial unit on IE. What you want to prevent anyway&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Morr</title>
		<link>http://ryanmorr.com/archives/fx-2-0-the-full-featured-animation-framework/comment-page-1#comment-572</link>
		<dc:creator>Ryan Morr</dc:creator>
		<pubDate>Mon, 07 Dec 2009 16:14:58 +0000</pubDate>
		<guid isPermaLink="false">http://ryanmorr.com/?p=1443#comment-572</guid>
		<description>@Thimo

That is true, the reason I avoid that specific segment of code in IE is because of the difference between the currentStyle property of IE and the getComputedStyle method of standard compliant browsers. 

The getComputedStyle method always returns values in pixels, meaning if you set a div in your CSS to &quot;width: 40%&quot; it will return the pixel value for that. The currentStyle property will return the value as defined in your CSS &quot;40%&quot;. Which means only for those browsers that use the getComputedStyle method that extends from document.defaultView and a from value is defined in the initial call we need to convert it to the pixel value of the from value.

If you run the demo in IE8 and use their DOM inspector you will see that the values are using the correct units.</description>
		<content:encoded><![CDATA[<p>@Thimo</p>
<p>That is true, the reason I avoid that specific segment of code in IE is because of the difference between the currentStyle property of IE and the getComputedStyle method of standard compliant browsers. </p>
<p>The getComputedStyle method always returns values in pixels, meaning if you set a div in your CSS to &#8220;width: 40%&#8221; it will return the pixel value for that. The currentStyle property will return the value as defined in your CSS &#8220;40%&#8221;. Which means only for those browsers that use the getComputedStyle method that extends from document.defaultView and a from value is defined in the initial call we need to convert it to the pixel value of the from value.</p>
<p>If you run the demo in IE8 and use their DOM inspector you will see that the values are using the correct units.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thimo</title>
		<link>http://ryanmorr.com/archives/fx-2-0-the-full-featured-animation-framework/comment-page-1#comment-571</link>
		<dc:creator>Thimo</dc:creator>
		<pubDate>Mon, 07 Dec 2009 15:45:26 +0000</pubDate>
		<guid isPermaLink="false">http://ryanmorr.com/?p=1443#comment-571</guid>
		<description>In IE document.defaultView is undefined. Therefore it cannot work.

Thimo</description>
		<content:encoded><![CDATA[<p>In IE document.defaultView is undefined. Therefore it cannot work.</p>
<p>Thimo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Morr</title>
		<link>http://ryanmorr.com/archives/fx-2-0-the-full-featured-animation-framework/comment-page-1#comment-570</link>
		<dc:creator>Ryan Morr</dc:creator>
		<pubDate>Mon, 07 Dec 2009 15:02:36 +0000</pubDate>
		<guid isPermaLink="false">http://ryanmorr.com/?p=1443#comment-570</guid>
		<description>@Thimo 

Nicely done! It&#039;s good to see some developers using FX and expanding upon it! I like the idea of animating to the styles of a className.

As for the unit conversion in FX, which browser/os are you using I&#039;ve tested my demo in IE6, IE7, and IE8 on both vista and XP without issue.

Great work on the plugin! I think I&#039;ll be including some of your ideas in a future version.</description>
		<content:encoded><![CDATA[<p>@Thimo </p>
<p>Nicely done! It&#8217;s good to see some developers using FX and expanding upon it! I like the idea of animating to the styles of a className.</p>
<p>As for the unit conversion in FX, which browser/os are you using I&#8217;ve tested my demo in IE6, IE7, and IE8 on both vista and XP without issue.</p>
<p>Great work on the plugin! I think I&#8217;ll be including some of your ideas in a future version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thimo</title>
		<link>http://ryanmorr.com/archives/fx-2-0-the-full-featured-animation-framework/comment-page-1#comment-569</link>
		<dc:creator>Thimo</dc:creator>
		<pubDate>Mon, 07 Dec 2009 14:40:19 +0000</pubDate>
		<guid isPermaLink="false">http://ryanmorr.com/?p=1443#comment-569</guid>
		<description>Hello Ryan,

I have written an animation plugin to KSS, based on your library:
http://www.joonis.de/kss-effects-plugin

I made some modifications as mentioned before:
RGBA-support, named colors, backgroundPosition, etc.

Also the unit conversion did not work for IE and all units. I changed this at the expense of size.

Again, thank you for your work.</description>
		<content:encoded><![CDATA[<p>Hello Ryan,</p>
<p>I have written an animation plugin to KSS, based on your library:<br />
<a href="http://www.joonis.de/kss-effects-plugin" rel="nofollow">http://www.joonis.de/kss-effects-plugin</a></p>
<p>I made some modifications as mentioned before:<br />
RGBA-support, named colors, backgroundPosition, etc.</p>
<p>Also the unit conversion did not work for IE and all units. I changed this at the expense of size.</p>
<p>Again, thank you for your work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Morr</title>
		<link>http://ryanmorr.com/archives/fx-2-0-the-full-featured-animation-framework/comment-page-1#comment-492</link>
		<dc:creator>Ryan Morr</dc:creator>
		<pubDate>Tue, 17 Nov 2009 14:30:43 +0000</pubDate>
		<guid isPermaLink="false">http://ryanmorr.com/?p=1443#comment-492</guid>
		<description>@Thimo

Let me see if I can address each of your questions/recommendations one at a time:

1) Fixed styles could be interesting, its not something I have considered before, you can post the code here or email whatever you have at rm.morr@gmail.com and I&#039;ll look it over.

2) The backgroundPosition is something I would never use for animation, and I&#039;m not sure why you ever would? With that said I&#039;ll look it over, thanks for the heads up!

3) I realize jQuery likes to mash together the value and units together for its animation, but the main reason I didn&#039;t go that route is because I wanted to avoid users animating a style from one unit to another (2em to 300px). I don&#039;t consider this good practice, so I decided to restrict it outright.

4) RGBA, and named colors are just a few of the features I&#039;m considering for future versions

5) The unit conversion is absolutely cross-browser and is actually based somewhat on jQuery&#039;s unit conversion. I can&#039;t claimed I&#039;ve tested it in every browser, but so far as I can tell the library, and therefore the unit conversion works in IE6+, FF2+, Opera 9+, Safari 3+, and Chrome 1+</description>
		<content:encoded><![CDATA[<p>@Thimo</p>
<p>Let me see if I can address each of your questions/recommendations one at a time:</p>
<p>1) Fixed styles could be interesting, its not something I have considered before, you can post the code here or email whatever you have at <a href="mailto:rm.morr@gmail.com">rm.morr@gmail.com</a> and I&#8217;ll look it over.</p>
<p>2) The backgroundPosition is something I would never use for animation, and I&#8217;m not sure why you ever would? With that said I&#8217;ll look it over, thanks for the heads up!</p>
<p>3) I realize jQuery likes to mash together the value and units together for its animation, but the main reason I didn&#8217;t go that route is because I wanted to avoid users animating a style from one unit to another (2em to 300px). I don&#8217;t consider this good practice, so I decided to restrict it outright.</p>
<p>4) RGBA, and named colors are just a few of the features I&#8217;m considering for future versions</p>
<p>5) The unit conversion is absolutely cross-browser and is actually based somewhat on jQuery&#8217;s unit conversion. I can&#8217;t claimed I&#8217;ve tested it in every browser, but so far as I can tell the library, and therefore the unit conversion works in IE6+, FF2+, Opera 9+, Safari 3+, and Chrome 1+</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thimo</title>
		<link>http://ryanmorr.com/archives/fx-2-0-the-full-featured-animation-framework/comment-page-1#comment-491</link>
		<dc:creator>Thimo</dc:creator>
		<pubDate>Fri, 13 Nov 2009 16:06:20 +0000</pubDate>
		<guid isPermaLink="false">http://ryanmorr.com/?p=1443#comment-491</guid>
		<description>Great work, thank you for this library.

I made some modifications to support fixed styles, which are changed after a given threshold. Let me know if you would like to implement this feature.

Also the property backgroundPosition needs some work...

Overall I would prefer to replace the extra units property with the possibility to parse the raw style into its value and unit on the fly.


Some other ideas: RGBA-support, named colors,...
Does the unit conversion work cross-browser?</description>
		<content:encoded><![CDATA[<p>Great work, thank you for this library.</p>
<p>I made some modifications to support fixed styles, which are changed after a given threshold. Let me know if you would like to implement this feature.</p>
<p>Also the property backgroundPosition needs some work&#8230;</p>
<p>Overall I would prefer to replace the extra units property with the possibility to parse the raw style into its value and unit on the fly.</p>
<p>Some other ideas: RGBA-support, named colors,&#8230;<br />
Does the unit conversion work cross-browser?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
