Template:Team:KIT-Kyoto/Scroll

From 2014.igem.org

(Difference between revisions)
Line 5: Line 5:
var i = $(".btn").index(this)
var i = $(".btn").index(this)
var p = $(".scroll").eq(i).offset().top;
var p = $(".scroll").eq(i).offset().top;
-
              p -= 50;
+
              p -= 70;
$('html,body').animate({ scrollTop: p }, 500, 'swing');
$('html,body').animate({ scrollTop: p }, 500, 'swing');
return false;
return false;

Revision as of 18:08, 1 September 2014