<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="0.91">
    <channel>
        <title>HTML Animation</title>
        <description>The 10 most recently added comments in the topic &quot;HTML Animation&quot;</description>
        <link>http://freewaytalk.net/</link>
        <lastBuildDate>Tue, 06 Jan 2009 08:01:51 -500</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>Re: HTML Animation</title>
            <link>http://freewaytalk.net/thread/view/36422#m_36522</link>
            <description>&lt;p&gt;FANTASTIC! Walter
Forgive my silly mistakes&amp;#8230; what could you expect from a designer (after
all)
Many thanks again
Sam&lt;/p&gt;

&lt;p&gt;2008/7/16 Walter Lee Davis &amp;lt;email@hidden&gt;:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Ah. A simple and classic mistake. You have named all three functions
  myFunction. They each fire, but the definition of the function is
  whatever the &lt;em&gt;last&lt;/em&gt; invocation is.&lt;/p&gt;
  
  &lt;p&gt;If you name each function uniquely, this will work. So in the second
  instance, you would name the function myFunction2, then change the
  afterFinish call to myFunction2, and outside of the function block,
  call myFunction2().&lt;/p&gt;
  
  &lt;p&gt;By the way, you could wrap all of this into a single function, too,
  and it would run all three blocks at once.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var myFunction = function(){
   var d= 3;
    $('a1').morph('background-color:#fecccb',{
           queue: { scope: 'a1' },
           duration:d
   });

   $('a1').morph('background-color:#ccccfe',{
           queue: { position: 'end', scope: 'a1' },
           duration:d
   });

   $('a1').morph('background-color:#3398cc',{
           queue: { position: 'end', scope: 'a1' },
           duration:d,
           afterFinish:myFunction
   });

   $('b1').morph('background-color:#feccff',{
           queue: { scope: 'b1' },
           duration:d
   });

   $('b1').morph('background-color:#cccc98',{
           queue: { position: 'end', scope: 'b1' },
           duration:d
   });

   $('b1').morph('background-color:#666632',{
           queue: { position: 'end', scope: 'b1' },
           duration:d,
           afterFinish:myFunction
   });

   $('c1').morph('background-color:#cccccc',{
           queue: { scope: 'c1' },
           duration:d
   });

   $('c1').morph('background-color:#cb9998',{
           queue: { position: 'end', scope: 'c1' },
           duration:d
   });

   $('c1').morph('background-color:#ffcb99',{
           queue: { position: 'end', scope: 'c1' },
            duration:d,
           afterFinish:myFunction
   });
}

myFunction();
&lt;/code&gt;&lt;/pre&gt;
  
  &lt;p&gt;That way you could just call one function at the end.&lt;/p&gt;
  
  &lt;p&gt;Walter&lt;/p&gt;
  
  &lt;p&gt;On Jul 16, 2008, at 2:16 PM, Sam wrote:&lt;/p&gt;
  
  &lt;blockquote&gt;
    &lt;p&gt;Hi Walter, need some more help&amp;#8230; please
    Please look at the link below&amp;#8230; many thanks&lt;/p&gt;
    
    &lt;p&gt;&lt;a href=&quot;http://www.thebookdesign.com/ani/index.htm&quot;&gt;http://www.thebookdesign.com/ani/index.htm&lt;/a&gt;&lt;/p&gt;
  &lt;/blockquote&gt;
  
  &lt;hr /&gt;
  
  &lt;p&gt;tutorials mailing list
  email@hidden
  Update your subscriptions at:
  &lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;hr /&gt;

&lt;p&gt;tutorials mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>Sam</author>
            <pubDate>Wed, 16 Jul 2008 19:05:31 -500</pubDate>
        </item>
        <item>
            <title>Re: HTML Animation</title>
            <link>http://freewaytalk.net/thread/view/36422#m_36521</link>
            <description>&lt;p&gt;Ah. A simple and classic mistake. You have named all three functions
myFunction. They each fire, but the definition of the function is
whatever the &lt;em&gt;last&lt;/em&gt; invocation is.&lt;/p&gt;

&lt;p&gt;If you name each function uniquely, this will work. So in the second
instance, you would name the function myFunction2, then change the
afterFinish call to myFunction2, and outside of the function block,
call myFunction2().&lt;/p&gt;

&lt;p&gt;By the way, you could wrap all of this into a single function, too,
and it would run all three blocks at once.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var myFunction = function(){
    var d= 3;
    $('a1').morph('background-color:#fecccb',{
        queue: { scope: 'a1' },
        duration:d
    });

    $('a1').morph('background-color:#ccccfe',{
        queue: { position: 'end', scope: 'a1' },
        duration:d
    });

    $('a1').morph('background-color:#3398cc',{
        queue: { position: 'end', scope: 'a1' },
        duration:d,
        afterFinish:myFunction
    });

    $('b1').morph('background-color:#feccff',{
        queue: { scope: 'b1' },
        duration:d
    });

    $('b1').morph('background-color:#cccc98',{
        queue: { position: 'end', scope: 'b1' },
        duration:d
    });

    $('b1').morph('background-color:#666632',{
        queue: { position: 'end', scope: 'b1' },
        duration:d,
        afterFinish:myFunction
    });

    $('c1').morph('background-color:#cccccc',{
        queue: { scope: 'c1' },
        duration:d
    });

    $('c1').morph('background-color:#cb9998',{
        queue: { position: 'end', scope: 'c1' },
        duration:d
    });

    $('c1').morph('background-color:#ffcb99',{
        queue: { position: 'end', scope: 'c1' },
        duration:d,
        afterFinish:myFunction
    });
}

myFunction();
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;That way you could just call one function at the end.&lt;/p&gt;

&lt;p&gt;Walter&lt;/p&gt;

&lt;p&gt;On Jul 16, 2008, at 2:16 PM, Sam wrote:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Hi Walter, need some more help&amp;#8230; please
  Please look at the link below&amp;#8230; many thanks&lt;/p&gt;
  
  &lt;p&gt;&lt;a href=&quot;http://www.thebookdesign.com/ani/index.htm&quot;&gt;http://www.thebookdesign.com/ani/index.htm&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;hr /&gt;

&lt;p&gt;tutorials mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>waltd</author>
            <pubDate>Wed, 16 Jul 2008 18:47:25 -500</pubDate>
        </item>
        <item>
            <title>Re: HTML Animation</title>
            <link>http://freewaytalk.net/thread/view/36422#m_36520</link>
            <description>&lt;p&gt;Hi Walter, need some more help&amp;#8230; please
Please look at the link below&amp;#8230; many thanks&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.thebookdesign.com/ani/index.htm&quot;&gt;http://www.thebookdesign.com/ani/index.htm&lt;/a&gt;&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;tutorials mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>Sam</author>
            <pubDate>Wed, 16 Jul 2008 18:17:11 -500</pubDate>
        </item>
        <item>
            <title>Re: HTML Animation</title>
            <link>http://freewaytalk.net/thread/view/36422#m_36519</link>
            <description>&lt;p&gt;I just tried (should have done before answering!)&lt;/p&gt;

&lt;p&gt;You can apply the Action to a master page, and its settings properly
copy down to the child pages. What you may have to look for is the
name of the elements that you expect it to apply to. Perhaps those
are not being set as you intend. If you called your animation object
item1 on one page, check to be sure it is called item1 on each page
in the entire set. The effect will not work any other way.&lt;/p&gt;

&lt;p&gt;Walter&lt;/p&gt;

&lt;p&gt;On Jul 16, 2008, at 12:47 PM, Sam wrote:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Hi Walter
  I may be going somewhere wrong&amp;#8230; this effect doesn&amp;#8217;t apply to
  &amp;#8216;master page&amp;#8217;&amp;#8230; for that matter all pages within the master style
  do not read this effect.
  HELP!&lt;/p&gt;
  
  &lt;hr /&gt;
  
  &lt;p&gt;tutorials mailing list
  email@hidden
  Update your subscriptions at:
  &lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;hr /&gt;

&lt;p&gt;tutorials mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>waltd</author>
            <pubDate>Wed, 16 Jul 2008 17:36:02 -500</pubDate>
        </item>
        <item>
            <title>Re: HTML Animation</title>
            <link>http://freewaytalk.net/thread/view/36422#m_36518</link>
            <description>&lt;p&gt;Actions and Master Pages are something of a problem. Try applying it
to the page in question first, and see if it works there.&lt;/p&gt;

&lt;p&gt;Walter&lt;/p&gt;

&lt;p&gt;On Jul 16, 2008, at 12:47 PM, Sam wrote:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Hi Walter
  I may be going somewhere wrong&amp;#8230; this effect doesn&amp;#8217;t apply to
  &amp;#8216;master page&amp;#8217;&amp;#8230; for that matter all pages within the master style
  do not read this effect.
  HELP!&lt;/p&gt;
  
  &lt;hr /&gt;
  
  &lt;p&gt;tutorials mailing list
  email@hidden
  Update your subscriptions at:
  &lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;hr /&gt;

&lt;p&gt;tutorials mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>waltd</author>
            <pubDate>Wed, 16 Jul 2008 17:33:15 -500</pubDate>
        </item>
        <item>
            <title>Re: HTML Animation</title>
            <link>http://freewaytalk.net/thread/view/36422#m_36514</link>
            <description>&lt;p&gt;Hi Walter
I may be going somewhere wrong&amp;#8230; this effect doesn&amp;#8217;t apply to &amp;#8216;master page&amp;#8217;&amp;#8230; for that matter all pages within the master style do not read this effect.
HELP!&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;tutorials mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>Sam</author>
            <pubDate>Wed, 16 Jul 2008 16:47:47 -500</pubDate>
        </item>
        <item>
            <title>Re: HTML Animation</title>
            <link>http://freewaytalk.net/thread/view/36422#m_36481</link>
            <description>&lt;p&gt;SUPER! WALTER
Many many thanks for your help and insight
Will keep you updated once my site is finished&amp;#8230; I&amp;#8217;m sure you&amp;#8217;ll be pleased
to see that
Sam&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;tutorials mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>Sam</author>
            <pubDate>Tue, 15 Jul 2008 22:32:30 -500</pubDate>
        </item>
        <item>
            <title>Re: HTML Animation</title>
            <link>http://freewaytalk.net/thread/view/36422#m_36480</link>
            <description>&lt;p&gt;I posted a question on the Prototype-Scriptaculous list, and got the
clue I needed. You make an anonymous function containing all of your
effects, and you use the queue feature that all of the effects share
to &amp;#8220;chain&amp;#8221; the effects together. Then, in the last step of this
chain, you call your anonymous function again.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var myFunction = function(){
    var d= 3;
    $('thing1').morph('background-color:#00f',{
        duration:d
    });
    $('thing1').morph('background-color:#0ff',{
        queue:'end',
        duration:d
    });
    $('thing1').morph('background-color:#0f0',{
        queue:'end',
        duration:d
    });
    $('thing1').morph('background-color:#f0f',{
        queue:'end',
        duration:d
    });
    $('thing1').morph('background-color:#f00',{
        queue:'end',
        duration:d
    });
    $('thing1').morph('background-color:#ff0',{
        queue:'end',
        duration:d,
        afterFinish:myFunction
    });
}
myFunction();
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;It&amp;#8217;s not important what you call this function, but notice that it is
defined first, then called in the afterFinish event of the last
effect. Then, after it is defined, it is called once. This will fire
when the page finishes loading.&lt;/p&gt;

&lt;p&gt;This particular rainbow is very primary/ugly/clashy. But with some
care and taste, you can make some cool transitions.&lt;/p&gt;

&lt;p&gt;Walter
On Jul 15, 2008, at 10:46 AM, Walter Lee Davis wrote:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;It should be possible. I would have to investigate making a recursive
  function work in this context. But sure, it&amp;#8217;s possible.&lt;/p&gt;
  
  &lt;p&gt;Walter&lt;/p&gt;
&lt;/blockquote&gt;

&lt;hr /&gt;

&lt;p&gt;tutorials mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>waltd</author>
            <pubDate>Tue, 15 Jul 2008 21:54:56 -500</pubDate>
        </item>
        <item>
            <title>Re: HTML Animation</title>
            <link>http://freewaytalk.net/thread/view/36422#m_36465</link>
            <description>&lt;p&gt;Thanks Walter,
Shall wait for your guidance.
Sam&lt;/p&gt;

&lt;p&gt;2008/7/15 Walter Lee Davis &amp;lt;email@hidden&gt;:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;It should be possible. I would have to investigate making a recursive
  function work in this context. But sure, it&amp;#8217;s possible.&lt;/p&gt;
  
  &lt;p&gt;Walter&lt;/p&gt;
  
  &lt;p&gt;On Jul 15, 2008, at 7:17 AM, Sam wrote:&lt;/p&gt;
  
  &lt;blockquote&gt;
    &lt;blockquote&gt;
      &lt;p&gt;Draw a colored HTML box on the page. Apply the Protaculous Action[1]
      to the page, and select scriptaculous-packed from the library menu.
      Click on either of the Function Body buttons in the Actions palette,
      and paste the following in there:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt; $('thing1').morph('background-color:#999999',{duration:3,delay:1}=
&lt;/code&gt;&lt;/pre&gt;
      
      &lt;p&gt;);&lt;/p&gt;
    &lt;/blockquote&gt;
    
    &lt;p&gt;Hi Walter this is perfect=85 I really liked smooth morphing effect=85
    At this code it just morphs once (thing1=97gray) and then stops. Is
    it possible to morph it in a loop (colour1=97colour2=97colour3=97colour=
    1)&lt;/p&gt;
    
    &lt;p&gt;Thanks
    Sam&lt;/p&gt;
    
    &lt;hr /&gt;
    
    &lt;p&gt;tutorials mailing list
    email@hidden
    Update your subscriptions at:
    &lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
  &lt;/blockquote&gt;
  
  &lt;hr /&gt;
  
  &lt;p&gt;tutorials mailing list
  email@hidden
  Update your subscriptions at:
  &lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;hr /&gt;

&lt;p&gt;tutorials mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>Sam</author>
            <pubDate>Tue, 15 Jul 2008 17:07:45 -500</pubDate>
        </item>
        <item>
            <title>Re: HTML Animation</title>
            <link>http://freewaytalk.net/thread/view/36422#m_36451</link>
            <description>&lt;p&gt;It should be possible. I would have to investigate making a recursive
function work in this context. But sure, it&amp;#8217;s possible.&lt;/p&gt;

&lt;p&gt;Walter&lt;/p&gt;

&lt;p&gt;On Jul 15, 2008, at 7:17 AM, Sam wrote:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;blockquote&gt;
    &lt;p&gt;Draw a colored HTML box on the page. Apply the Protaculous Action[1]
    to the page, and select scriptaculous-packed from the library menu.
    Click on either of the Function Body buttons in the Actions palette,
    and paste the following in there:&lt;/p&gt;
    
    &lt;p&gt;$(&amp;#8216;thing1&amp;#8217;).morph(&amp;#8216;background-color:#999999&amp;#8217;,{duration:3,delay:1});&lt;/p&gt;
  &lt;/blockquote&gt;
  
  &lt;p&gt;Hi Walter this is perfect I really liked smooth morphing effect
  At this code it just morphs once (thing1gray) and then stops. Is
  it possible to morph it in a loop (colour1colour2colour3colour1)&lt;/p&gt;
  
  &lt;p&gt;Thanks
  Sam&lt;/p&gt;
  
  &lt;hr /&gt;
  
  &lt;p&gt;tutorials mailing list
  email@hidden
  Update your subscriptions at:
  &lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;hr /&gt;

&lt;p&gt;tutorials mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>waltd</author>
            <pubDate>Tue, 15 Jul 2008 14:46:47 -500</pubDate>
        </item>
        <item>
            <title>HTML Animation</title>
            <link>http://freewaytalk.net/thread/view/36422</link>
            <description>&lt;p&gt;Is there anyway to create simple animation (colours fade-in and fade-out) with pure html objects, like this GIF animation&amp;#8230;.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.thebookdesign.com/ani/animation.html&quot;&gt;http://www.thebookdesign.com/ani/animation.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I&amp;#8217;d remain grateful. Many thanks&lt;/p&gt;

&lt;p&gt;Sam&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;tutorials mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>Sam</author>
            <pubDate>Tue, 15 Jul 2008 02:52:40 -500</pubDate>
        </item>
    </channel>
</rss>
