What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-21 22:49:04
links and when you click on these link it will scroll the page to the respective section.
$("nav").find("a").click(function(e) { e.preventDefault(); var section = $(this).attr("href"); $("html, body").animate({ scrollTop: $(section).offset().top }); }); Add solution -
Javascript 2021-09-17 05:28:02
slide when mouse over gadget jquery
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-... Add solution -
Other 2021-09-04 05:06:01
simple button scrolling with this
// Select all »a« elements with a parent tag »nav« and add a function that is executed on click $('#id a').on('click', function (e) { // Define variable of the clicked »a« element (»this«) and get its hr... Add solution