<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>An arrow through my ear</title>
    <link>http://www.djamil.it</link>
    <description>An arrow through my ear Feed</description>
    <language>en-us</language>
    <generator>Symphony (build 1701)</generator>
    <item>
      <title>The onChainComplete</title>
      <link>http://www.djamil.it/entries/the-onchaincomplete/</link>
      <pubDate>Tue, 26 Feb 2008 14:43:00 GMT</pubDate>
      <guid>http://www.djamil.it/entries/the-onchaincomplete/</guid>
      <description>&lt;p&gt;Yesterday I was helping a guy with MooTools 1.2. He wanted to chain some effects on an element and, when all effects completed, to perform a simple fade in on another element.&lt;/p&gt;

&lt;p&gt;Basically, he had a &lt;em&gt;box&lt;/em&gt; element and an &lt;em&gt;image&lt;/em&gt; inside that box. He wanted first to make the box growing horizontally, then vertically and finally to fade the image in. It sounds pretty simple, and in fact it is. There are a couple of approaches to achieve it. I will not show you how new Fx work, for that you can have a nice reading at Tom&amp;#8217;s &lt;a href="http://blog.mootools.net/2007/10/23/The_Best_Javascript_Effects_Now_Even_Better"&gt;great article&lt;/a&gt;. I will instead show you some of the approaches and introduce &lt;code&gt;onChainComplete&lt;/code&gt;.&lt;/p&gt;

&lt;h2 id="startup"&gt;Startup&lt;/h2&gt;

&lt;p&gt;We first instantiate our &lt;code&gt;Fx.Morph&lt;/code&gt;, we&amp;#8217;re going to refer to it in all the following approaches. Here we go:&lt;/p&gt;

&lt;pre&gt;&lt;code class="javascript"&gt;// We cache image and box elements, since we're going
// to use them later.
var img = $('myImg'), box = $('myBox');

// We now instantiate the effect, setting 1 second as duration, Quad.easeOut as transition
// and, important, we set chain as effects link.
var fx = new Fx.Morph(box, {duration: 1000, transition: 'quad:out', link: 'chain'});
&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>The beginning</title>
      <link>http://www.djamil.it/entries/the-beginning/</link>
      <pubDate>Mon, 25 Feb 2008 05:30:00 GMT</pubDate>
      <guid>http://www.djamil.it/entries/the-beginning/</guid>
      <description>&lt;h4 id="the-beginning-english-intro"&gt;English&lt;/h4&gt;

&lt;p&gt;After more than a year of &lt;em&gt;&amp;#8220;maintenance mode&amp;#8221;&lt;/em&gt;, I&amp;#8217;ve finally completed my &lt;a href="http://symphony21.com"&gt;Symphony&lt;/a&gt; template.&lt;/p&gt;

&lt;p&gt;We are &lt;strong&gt;live&lt;/strong&gt;, baby! Question is, for how long?&lt;/p&gt;

&lt;h4 id="the-beginning-italiano-intro"&gt;Italiano&lt;/h4&gt;

&lt;p&gt;Dopo oltre un anno di &lt;em&gt;&amp;#8220;sito in mantenimento&amp;#8221;&lt;/em&gt;, ho finalmente completato il template per &lt;a href="http://symphony21.com"&gt;Symphony&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Ci siamo baby, siamo &lt;strong&gt;live&lt;/strong&gt;! La domanda è, per quanto tempo?&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
