Working on rgb "running" led....

Hy ppl..Im new at this so please be patiente...
Im trying to work on project that includes rgb led"s...
I want to make set of 10 rgb led"s that shows 3 colours in order that pushbutton sets....
If I push button 1,cycle 5 times 10 rgb leds in 300ms time in one colur,push button 2 stop first colour and
go to next with same pattern....
Sample that im working on:
3 pushbuttons.
Pushbutton 1 starts "running/chasing light" green light of 10 led"s.....
Pushbutton 2 starts "running/chasing light" of yellow colour 10 led"s...
Pushbutton 3 starts "running/chasing light" of red colour 10 led"s.
Digital outputs/inputs.
Digital inputs for pushbuttons are 0,1,2.Digital outputs are 3,4,5...
Each cyclus for each colour is 5x300ms
If somebody can give some hint or even video from somewhere it would be helpfull.....
Sketch,wireing something...ty
yh Im using Croduino Croatian version of arduino uno....

croduino baci.jpg

Are these individual RGB LEDs or RGB LED strips?

What kind of RGB LEDs are you using?

Thank you for your reply....
Yes they are individual,one line of 10 rgb led"s.....
Im using 5mm RGB LED Diode common cathode.....
Like one in attachment.....

You need to consider how you are going to connect them first. Ten RGB LEDs is 30 LEDs to control so you will need an external chip or two. Are you wanting just on and off control or dimming control so you can mix colours.

These days it is much easer to use WS2812b LEDs because these only need one Arduino output to drive an almost unlimited number.

Just on/off....
As i wrote...
3 pushbuttons/10 leds....
When first pushbutton pressed First cycle goes on(green light,5times "chasing")
When sequence is over or i press pushbutton 2 green stops and then yellow colour starts that same sequence of 5 times "chasing"...
Same for 3rd pushbutton but on 3rd is red colour with that sequence........
Each cycle for each colour is 5 times x300ms
And yh if sequence is over and no pushbutton is pressed "game over" it doesent repeat anything...
If you can give me some guidence it would be great.....
I would try like this with 10 rgb leds,becouse WS2812B LED stripe is pretty expensive here....

I would try like this with 10 rgb leds,becouse WS2812B LED stripe is pretty expensive here

Yes but with so many LEDs then you have to drive them somehow so that adds to the cost.

Before anyone can help you with the code you need to sort out your hardware as the code depends on talking to that hardware. So let's get that sorted first.

Shift registers are a popular way of adding extra outputs, although most of them can't handle 8 LEDs @ 20mA on at the same time.