चिकना स्क्रॉल सीएसएस
html {
scroll-behavior: smooth;
}
/* No support in IE, or Safari
You can use this JS polyfill for those */
http://iamdustan.com/smoothscroll/
जावास्क्रिप्ट में स्क्रॉल सुचारू करने के लिए कैसे
window.scrollTo({ top: 900, behavior: 'smooth' })
चिकना स्क्रॉल
// Scroll to specific values
// scrollTo is the same
window.scroll({
top: 2500,
left: 0,
behavior: 'smooth'
});
// Scroll certain amounts from current position
window.scrollBy({
top: 100, // could be negative value
left: 0,
behavior: 'smooth'
});
// Scroll to a certain element
document.querySelector('.hello').scrollIntoView({
behavior: 'smooth'
});
चिकना स्क्रॉल वेबसाइट
$('#element').foundation('_destroy');