https://i.sstatic.net/5jUa4.png I have included an image to illustrate my request. In the setup, there is a container with a yellow border and content enclosed in a red border. My goal is to have the content scroll left by the width of one container when the button inside the container is clicked.
Although I attempted using CSS animation, it did not produce the desired outcome. Is there another method to achieve this effect?
For reference, I have created a demo available at: https://codesandbox.io/s/keen-panini-hel36