JS Scrollintoview
const options = {
inline: 'start',
block: 'start',
behavior: 'smooth'
}
htmlDiv.scrollIntoView(options)
/*
- behavior Optional
Defines the transition animation. One of auto or smooth. Defaults to auto.
- block Optional
Defines vertical alignment. One of start, center, end, or nearest.
Defaults to start.
- inline Optional
Defines horizontal alignment. One of start, center, end, or nearest.
Defaults to nearest.
*/
florinrelea