Team:NCTU Formosa/source/head

From 2013.igem.org

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

Revision as of 17:05, 24 October 2013