do:
$("button").click(function() {
$('html,body').animate({
scrollTop: $(".second").offset().top},
'slow');
});
Updated Jsfiddle
More Related Contents:
- Date Format UTC in javascript [duplicate]
- How to get the children of the $(this) selector?
- Getting the ID of the element that fired an event
- How can you check for a #hash in a URL using JavaScript?
- Remove array element based on object property
- How to find index of all occurrences of element in array?
- Day Name from Date in JS
- Resolve circular references from JSON object
- Resize event for textarea?
- How do I stop a window.setInterval in javascript?
- Change CSS of selected text using Javascript
- Using jQuery to find an element at a particular position?
- Why should y.innerHTML = x.innerHTML; be avoided?
- Use jQuery to scroll to the bottom of a div with lots of text
- jQuery – Increase the value of a counter when a button is clicked
- jQuery $.cookie is not a function
- Count immediate child div elements using jQuery
- Fullpage.js. Adding a scroll delay
- Validate html text input as it’s typed
- How to show live preview in a small popup of linked page on mouse over on link?
- Change Height based on Browser Size/Resize
- Refresh a section after adding HTML dynamically to jquery mobile [duplicate]
- how Postman send requests? ajax, same origin policy
- JavaScript/jQuery event listener on image load IE issues
- Wrapping lists into columns
- Close a SELECT dropdown list programmatically with Javascript/jQuery
- Why can an element id not start with an integer? [duplicate]
- Possible to reverse a css animation on class removal?
- Add / Change parameter of URL and redirect to the new URL
- Can I prevent history.popstate from triggering on initial page-load?