I am searching for a way to implement horizontal scrolling using buttons in VueJS. The idea is to have a container with multiple divs arranged horizontally, and I wish to navigate through them using the buttons.
If you want to see a similar solution using JQuery, you can check out this thread on SO. Also, here's a demo showcasing the desired effect in JQuery.
Is there a way to achieve this effect using VueJS?
I've already looked into a couple of libraries such as vue-scroll-to and jump.
Vue-scroll-to requires specifying an element to scroll to, but I need to scroll horizontally within a specific element by a fixed number of pixels.
Jump allows vertical scrolling over a set amount of pixels and seems to only work on the window.
UPDATE: I came across a small library that solves this issue using VanillaJS: https://github.com/tarun-dugar/easy-scroll