<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Comments on snippet: 'jQuery Animated Scroll To Top'</title>
<link>http://snipplr.com</link>
<description>Snipplr comments feed'</description>
<language>en-us</language>
<pubDate>Tue, 14 Feb 2012 07:28:46 GMT</pubDate>
<item>
<title>madc said on 11/17/11</title>
<link>http://snipplr.com/view/8782/jquery-animated-scroll-to-top/</link>
<description><![CDATA[ Perfect, thanks. ]]></description>
<pubDate>Thu, 17 Nov 2011 23:19:48 GMT</pubDate>
<guid>http://snipplr.com/view/8782/jquery-animated-scroll-to-top/</guid>
</item>
<item>
<title>danieldue said on 5/6/11</title>
<link>http://snipplr.com/view/8782/jquery-animated-scroll-to-top/</link>
<description><![CDATA[ Nice.. works like a charm :) with: returne false.. ]]></description>
<pubDate>Fri, 06 May 2011 03:32:07 GMT</pubDate>
<guid>http://snipplr.com/view/8782/jquery-animated-scroll-to-top/</guid>
</item>
<item>
<title>crispunk said on 4/11/11</title>
<link>http://snipplr.com/view/8782/jquery-animated-scroll-to-top/</link>
<description><![CDATA[ you can also use a preventdefault

$(document).ready(function() {
	$('.backtotop').click(function(e){
		$('html, body').animate({scrollTop:0}, 'slow');
                e.preventDefault();
	});
}); ]]></description>
<pubDate>Mon, 11 Apr 2011 08:30:33 GMT</pubDate>
<guid>http://snipplr.com/view/8782/jquery-animated-scroll-to-top/</guid>
</item>
<item>
<title>DiegoQ said on 2/26/11</title>
<link>http://snipplr.com/view/8782/jquery-animated-scroll-to-top/</link>
<description><![CDATA[ Hi all,
what about if I need to scroll to top -or to other div´s wherever they were-
from diferents elements...?

The example shows the way to do that from only one element (".backtotop")
Im handling diferents functions from diferent elements, including one swf file ;)
But I doesnt works if I try to trigger one function from diferents elements :(

Cheers! ]]></description>
<pubDate>Sat, 26 Feb 2011 02:04:35 GMT</pubDate>
<guid>http://snipplr.com/view/8782/jquery-animated-scroll-to-top/</guid>
</item>
<item>
<title>jackkeller said on 12/18/10</title>
<link>http://snipplr.com/view/8782/jquery-animated-scroll-to-top/</link>
<description><![CDATA[ Great snippet to keep in the arsenal, I was trying to get a similar function to work on a paged form and going about it way more complex with adverse results, this was perfect to add to my .click action! ]]></description>
<pubDate>Sat, 18 Dec 2010 17:41:13 GMT</pubDate>
<guid>http://snipplr.com/view/8782/jquery-animated-scroll-to-top/</guid>
</item>
<item>
<title>tomasdev said on 11/19/10</title>
<link>http://snipplr.com/view/8782/jquery-animated-scroll-to-top/</link>
<description><![CDATA[ Oh dear, just awesome. :D ]]></description>
<pubDate>Fri, 19 Nov 2010 00:47:53 GMT</pubDate>
<guid>http://snipplr.com/view/8782/jquery-animated-scroll-to-top/</guid>
</item>
<item>
<title>tcelestino said on 8/7/10</title>
<link>http://snipplr.com/view/8782/jquery-animated-scroll-to-top/</link>
<description><![CDATA[ Nice man!!! ]]></description>
<pubDate>Sat, 07 Aug 2010 00:44:18 GMT</pubDate>
<guid>http://snipplr.com/view/8782/jquery-animated-scroll-to-top/</guid>
</item>
<item>
<title>eduardodx said on 7/12/10</title>
<link>http://snipplr.com/view/8782/jquery-animated-scroll-to-top/</link>
<description><![CDATA[ Thanks man, really worked.
@DraStudio : the 'return false' in the end is the magic for everything works perfectly. ]]></description>
<pubDate>Mon, 12 Jul 2010 23:35:12 GMT</pubDate>
<guid>http://snipplr.com/view/8782/jquery-animated-scroll-to-top/</guid>
</item>
<item>
<title>Cisco said on 4/24/10</title>
<link>http://snipplr.com/view/8782/jquery-animated-scroll-to-top/</link>
<description><![CDATA[ Works like a charm, thanks! I just re-used the line 3 in my context and that's working perfect! ]]></description>
<pubDate>Sat, 24 Apr 2010 06:26:37 GMT</pubDate>
<guid>http://snipplr.com/view/8782/jquery-animated-scroll-to-top/</guid>
</item>
<item>
<title>kopepasah said on 3/25/10</title>
<link>http://snipplr.com/view/8782/jquery-animated-scroll-to-top/</link>
<description><![CDATA[ Could not get this to work on my site. 

I created a .js file. Referenced the my sites head, but the link would not 'scroll up'. 

Help? ]]></description>
<pubDate>Thu, 25 Mar 2010 00:38:55 GMT</pubDate>
<guid>http://snipplr.com/view/8782/jquery-animated-scroll-to-top/</guid>
</item>
<item>
<title>DraStudio said on 2/1/10</title>
<link>http://snipplr.com/view/8782/jquery-animated-scroll-to-top/</link>
<description><![CDATA[ I added a return false at the end of it, so if the class is applied to a block level element that contains anchor in it, it won't try to first follow the anchor then animate, which was causing a jitter for me in Firefox.

$(document).ready(function() {
	$('.backtotop').click(function(){
		$('html, body').animate({scrollTop:0}, 'slow');
		return false;
	});
}); ]]></description>
<pubDate>Mon, 01 Feb 2010 17:35:43 GMT</pubDate>
<guid>http://snipplr.com/view/8782/jquery-animated-scroll-to-top/</guid>
</item>
<item>
<title>Gregasus said on 11/24/09</title>
<link>http://snipplr.com/view/8782/jquery-animated-scroll-to-top/</link>
<description><![CDATA[ I does not seem to work in IE ]]></description>
<pubDate>Tue, 24 Nov 2009 05:55:37 GMT</pubDate>
<guid>http://snipplr.com/view/8782/jquery-animated-scroll-to-top/</guid>
</item>
<item>
<title>oronm said on 10/4/09</title>
<link>http://snipplr.com/view/8782/jquery-animated-scroll-to-top/</link>
<description><![CDATA[ thanks !! ]]></description>
<pubDate>Sun, 04 Oct 2009 21:36:42 GMT</pubDate>
<guid>http://snipplr.com/view/8782/jquery-animated-scroll-to-top/</guid>
</item>
</channel>
</rss>
