How to create animation?

Hello, i want to click on arrow and slip these sections with numbers on one position? using animation.
How can i do it? Thank you

slip these sections with numbers on one position

What do you mean by this?

Hi I think you can make a prototype animation like in this video. Как сделать слайдер в figma - NikitaIudin.ru