Team:NCTU Formosa/source/head

From 2013.igem.org

(Difference between revisions)
Line 149: Line 149:
$(window).scroll(function () {
$(window).scroll(function () {
if ($(this).scrollTop() > 100) {
if ($(this).scrollTop() > 100) {
-
$('#back-top').fadeIn();
+
$('#back-top').animate({'opacity': '1'}, 500);
} else {
} else {
-
$('#back-top').fadeOut();
+
$('#back-top').animate({'opacity': '0'}, 500);
}
}
});
});

Revision as of 17:01, 24 October 2013