I am currently working on designing a card slider. I want to implement a functionality where clicking the next arrow button will increase the margin left, thus displaying the next card. Is there a way for me to create a function that can adjust the margin of a card slider when clicked?
For example, you can check out this website:
I observed that on this website, when you click on the next arrow, it increases the margin which shifts to the next card. I am curious if I can achieve the same effect using react.
Thank you.