fn.scv(element,type);// type is 'top' 'bottom' else be the center
let fn={}
fn.scv=(el,type='top')=>{
if(type=='top') return el.scrollIntoView({ behavior: 'smooth',block: "start", inline: "nearest" })
if(type=='bottom') return el.scrollIntoView({ behavior: 'smooth',block: "end", inline: "nearest" })
/*if(type=='center')*/ return el.scrollIntoView({ behavior: 'smooth'})
}