Hey community, I have a scrollable list in the X-axis which I want to scroll on a button click.
I know how the native logic works to have an event listener on the button and likewise change scrollLeft value, but I am unable to target and likewise integrate the logic for the scrollable container in Weweb.
Parent container is a Collection list.
Button is an arrow button.
I would also like to know because I have a div in which I would like the user to scrollable using buttons but “scrollLeft” doesn’t work, maybe @aurelie can help us
first of all set up your scrollable list and button for enable scrolling. for click events add event listener to button. by javascript target the collection list and adjust it scrollLeft property. this method control horizontal scrolling when the button is clicked.