0๐
I found that instead of scollLeft
you can use scrollTo
which brings some handy options:
const scrollRight = (() => {
document.querySelector('.artwork-container').scrollTo({
left: 500,
behavior: 'smooth'
})
})
- [Vuejs]-Vue 3 reusable error handling and handleSubmit in reusable 'useForm' function using the composition api
- [Vuejs]-VUE3 โ Custom Input to format phone numbers. Can't get to work with v-model in parent
Source:stackexchange.com