I’m using Bill Miller’s Interactive Decision guide code. http://www.guiideas.com/2013/09/interactive-decision-guide.html To scroll new questions into view at the bottom of the page he uses window.scrollTo Is it possible to add duration and easing to window.scrollTo or is there an alternative method? Answer Try this: Comment out (or delete) window.scrollTo(0, difHigh); line inside the if (difHigh>0) {} clause. Add $(‘html,body’).animate({scrollTop:difHigh},400); instead. JavaScript
Tag: scrollto
Scroll Automatically to the Bottom of the Page
I have a list of questions. When I click on the first question, it should automatically take me to a specific element at the bottom of the page. How can I do this with jQuery? Answer jQuery isn’t necessary. Most of the top results I got from a Google search gave me this answer: Where you have nested elements, the