slétt hægt að fletta
html {
scroll-behavior: smooth;
}
/* No support in IE, or Safari
You can use this JS polyfill for those */
http://iamdustan.com/smoothscroll/
hvernig á að draga að fletta í javascript
window.scrollTo({ top: 900, behavior: 'smooth' })