Difference between revisions of "Team:Cambridge-JIC/TestHome"
Line 19: | Line 19: | ||
$(this).on("click", function(){ | $(this).on("click", function(){ | ||
console.log($(this).parents("section").next().offset().top) | console.log($(this).parents("section").next().offset().top) | ||
+ | $("html, body").animate({ scrollTop: $(this).parents("section").next().offset().top }, 1000); | ||
}) | }) | ||
$(this).css("cursor", "pointer") | $(this).css("cursor", "pointer") |
Revision as of 01:45, 4 August 2015