Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
behavior: instructions => {
const { el: frame, left } = instructions[0]
const elementScroll = scroll(frame)
spring({
from: frame.scrollLeft,
to: left,
//stiffness: 200,
//damping: 10,
}).start(v => elementScroll.set('left', v))
},
boundary: this.container.parentNode as Element,