Ideas how to do reverse scrolling?

Hi, everybody. I have a small “slider” - transition between sections and I need to do a reverse scrolling. This is done with the help of interaction ScrollIntoview. Maybe need some code integration or any ideas to help the user get back to the previous slide