Template:Team:KIT-Kyoto/Scroll

From 2014.igem.org

(Difference between revisions)
 
(4 intermediate revisions not shown)
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;

Latest revision as of 08:38, 15 September 2014