Scroll by xx pixels on click (NOT scroll to anchor)

Hi there,

I have a prototype where I want to have left and right arrow buttons that when clicked scroll the contents of a dynamic panel on the x axis by either +200 pixels (for the right arrow) or -200 pixels (for the left arrow).

I know this could be achieved if I used anchors, but I can’t do this in my context. I know similar functionality exists for the ‘move’ interaction, but this isn’t suitable for my project.

Any ideas welcome. Thank you.

move an anchor by 200px or -200px first.
then scroll to it

2 Likes

Thank you. This is brilliantly simple and works perfectly. Should have thought about it myself!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.