Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am kassares on github.
* I am ekassa (https://keybase.io/ekassa) on keybase.
* I have a public key ASD4aUf-iGJ8Lf0AMsP5Qz-tTR30xZoOQ8zYue4dyC3iHwo
To claim this, I am signing this object:
$(function() {
$(window).scroll(function() {
if($(this).scrollTop() != 0) {
$('#toTop').fadeIn();
} else {
$('#toTop').fadeOut();
}
});
$('#toTop').click(function() {
$('body,html').animate({scrollTop:0},800);