How to scroll a scrollable container on Click of a other button

Hey :wave:

I think I’ve managed to reproduce the desired outcome with .scrollLeft

Here is the custom JS on my button workflow. I needed to target the parent element of the collection (because WeWeb auto-generate a div)

const collection = wwLib.getFrontDocument().querySelector('#collection').parentElement;
collection.scrollLeft += 100; 

Does that help?

1 Like