Template:Team:KIT-Kyoto/Scroll

From 2014.igem.org

(Difference between revisions)
Line 6: Line 6:
var p = $(".scroll").eq(i).offset().top;
var p = $(".scroll").eq(i).offset().top;
              p -= 70;
              p -= 70;
-
$('html,body').animate({ scrollTop: p }, 600, 'swing');
+
$('html,body').animate({ scrollTop: p }, 500, 'swing');
return false;
return false;
});       
});       
Line 16: Line 16:
        });
        });
                top.click(function () {
                top.click(function () {
-
                 $('body,html').animate({scrollTop: 0 }, 600, 'swing');
+
                 $('body,html').animate({scrollTop: 0 }, 500, 'swing');
                return false;
                return false;
        });
        });

Revision as of 04:28, 11 September 2014