<?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: Understanding jQuery animate() function</title> <atom:link href="http://viralpatel.net/blogs/2010/03/understanding-jquery-animate-function.html/feed" rel="self" type="application/rss+xml" /><link>http://viralpatel.net/blogs/2010/03/understanding-jquery-animate-function.html</link> <description>Tutorials, Java, J2EE, Struts, AJAX, JavaScript, CSS, Web 2.0, MySQL, Articles</description> <lastBuildDate>Wed, 08 Feb 2012 10:36:26 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Alt</title><link>http://viralpatel.net/blogs/2010/03/understanding-jquery-animate-function.html/comment-page-1#comment-25880</link> <dc:creator>Alt</dc:creator> <pubDate>Tue, 07 Feb 2012 16:11:38 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=2045#comment-25880</guid> <description>How does the reset button (next to the animate buttons) work?</description> <content:encoded><![CDATA[<p>How does the reset button (next to the animate buttons) work?</p> ]]></content:encoded> </item> <item><title>By: CS95</title><link>http://viralpatel.net/blogs/2010/03/understanding-jquery-animate-function.html/comment-page-1#comment-25714</link> <dc:creator>CS95</dc:creator> <pubDate>Mon, 30 Jan 2012 06:42:24 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=2045#comment-25714</guid> <description>Very usefull tutorial.</description> <content:encoded><![CDATA[<p>Very usefull tutorial.</p> ]]></content:encoded> </item> <item><title>By: Viral Patel</title><link>http://viralpatel.net/blogs/2010/03/understanding-jquery-animate-function.html/comment-page-1#comment-19390</link> <dc:creator>Viral Patel</dc:creator> <pubDate>Fri, 23 Dec 2011 08:27:36 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=2045#comment-19390</guid> <description>@Confusecious - To achieve such functionality you can define a flag and use it to animate/move element only once. For example: [code language=&quot;js&quot;] var leftflag = false; $(&quot;#left&quot;).click(function() { if(!leftflag) { leftflag = true; $(&quot;#content&quot;).animate( {&quot;left&quot;: &quot;-=50px&quot;}, &quot;slow&quot;); } }); [/code] Hope this works :)</description> <content:encoded><![CDATA[<p>@Confusecious &#8211; To achieve such functionality you can define a flag and use it to animate/move element only once. For example:</p><pre class="brush: jscript; title: ; notranslate">
var leftflag = false;
$(&quot;#left&quot;).click(function() {
   if(!leftflag) {
   leftflag = true;
       $(&quot;#content&quot;).animate(
               {&quot;left&quot;: &quot;-=50px&quot;},
               &quot;slow&quot;);
   }
});
</pre><p>Hope this works <img src='http://viralpatel.net/blogs/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: confusecious</title><link>http://viralpatel.net/blogs/2010/03/understanding-jquery-animate-function.html/comment-page-1#comment-19387</link> <dc:creator>confusecious</dc:creator> <pubDate>Fri, 23 Dec 2011 07:50:21 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=2045#comment-19387</guid> <description>Thanks for the examples!!For &#039;moving elements&#039;, (demo 4):If I click on &#039;left&#039;...it moves 50px, click again and moves 50px. But I only need to move it once, the second click i want it to be still.How would I do that?thanks</description> <content:encoded><![CDATA[<p>Thanks for the examples!!</p><p>For &#8216;moving elements&#8217;, (demo 4):</p><p>If I click on &#8216;left&#8217;&#8230;it moves 50px, click again and moves 50px. But I only need to move it once, the second click i want it to be still.</p><p>How would I do that?</p><p>thanks</p> ]]></content:encoded> </item> <item><title>By: mahesh</title><link>http://viralpatel.net/blogs/2010/03/understanding-jquery-animate-function.html/comment-page-1#comment-18121</link> <dc:creator>mahesh</dc:creator> <pubDate>Fri, 25 Nov 2011 11:22:07 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=2045#comment-18121</guid> <description>ok brother great work it is working nice ,thnaking you ,god is bless you soooooooooomuch you, nice days brother</description> <content:encoded><![CDATA[<p>ok brother great work it is working nice ,thnaking you ,god is bless you soooooooooomuch you, nice days brother</p> ]]></content:encoded> </item> <item><title>By: mahesh</title><link>http://viralpatel.net/blogs/2010/03/understanding-jquery-animate-function.html/comment-page-1#comment-18120</link> <dc:creator>mahesh</dc:creator> <pubDate>Fri, 25 Nov 2011 11:16:58 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=2045#comment-18120</guid> <description>nice one, but I have something problem in dremweaver or in browser please solve the problem which browser support this jquiry i write the code like this in dremweavercs5.5Untitled Document [code language=&quot;js&quot;] #content { background-color:#ffaa00; width:300px; height:30px; padding:3px; }$(&quot;#animate&quot;).click(function() { $(&quot;#content&quot;).animate( {&quot;height&quot;: &quot;80px&quot;}, &quot;fast&quot;); }); [/code]Animate Heightbut it is not work</description> <content:encoded><![CDATA[<p>nice one, but I have something problem in dremweaver or in browser please solve the problem which browser support this jquiry<br /> i write the code like this in dremweavercs5.5</p><p>Untitled Document</p><pre class="brush: jscript; title: ; notranslate">
#content {
    background-color:#ffaa00;
    width:300px;
    height:30px;
    padding:3px;
}

$(&quot;#animate&quot;).click(function() {
    $(&quot;#content&quot;).animate(
            {&quot;height&quot;: &quot;80px&quot;},
            &quot;fast&quot;);
});
</pre><p>Animate Height</p><p>but it is not work</p> ]]></content:encoded> </item> <item><title>By: IP</title><link>http://viralpatel.net/blogs/2010/03/understanding-jquery-animate-function.html/comment-page-1#comment-16125</link> <dc:creator>IP</dc:creator> <pubDate>Tue, 27 Sep 2011 13:15:27 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=2045#comment-16125</guid> <description>Awesome tutorial. Thanks lots. God bless you!</description> <content:encoded><![CDATA[<p>Awesome tutorial. Thanks lots. God bless you!</p> ]]></content:encoded> </item> <item><title>By: oyun</title><link>http://viralpatel.net/blogs/2010/03/understanding-jquery-animate-function.html/comment-page-1#comment-16030</link> <dc:creator>oyun</dc:creator> <pubDate>Thu, 15 Sep 2011 16:21:30 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=2045#comment-16030</guid> <description>I lıve jQuery.I love jQuery animation.=)</description> <content:encoded><![CDATA[<p>I lıve jQuery.I love jQuery animation.=)</p> ]]></content:encoded> </item> <item><title>By: dYcA</title><link>http://viralpatel.net/blogs/2010/03/understanding-jquery-animate-function.html/comment-page-1#comment-14530</link> <dc:creator>dYcA</dc:creator> <pubDate>Mon, 11 Apr 2011 07:46:19 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=2045#comment-14530</guid> <description>prikitiuw... great tutorial. thx plen</description> <content:encoded><![CDATA[<p>prikitiuw&#8230; great tutorial.<br /> thx plen</p> ]]></content:encoded> </item> <item><title>By: Neeraj Dhiman</title><link>http://viralpatel.net/blogs/2010/03/understanding-jquery-animate-function.html/comment-page-1#comment-14008</link> <dc:creator>Neeraj Dhiman</dc:creator> <pubDate>Thu, 17 Feb 2011 06:58:58 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=2045#comment-14008</guid> <description>This is really great. Thanks for the compilation!</description> <content:encoded><![CDATA[<p>This is really great. Thanks for the compilation!</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: viralpatel.net @ 2012-02-09 09:31:38 -->
