neopixel timing

hi Guys

my coding exp is quite small
i am with a neopixel strip on a nano
i want to do a function that while a button is pressed to do certain type of flashes, i got this done with delays but its not really what i am looking for, i want it to follow a sequence and as soon the button is off to immediatly finishi the sequence

would be like

if
button is high

do
led1 on
if after 10 seconds button is still high
do
led2 on
if its still on after another 10 secondos
do
led 3 on

if button is low
stop all leds to off.

i want to do this with mills or other function that does not stop the program
thank you

Hello Danny1000

Cunningly hidden in plain sight, and in bold to make it even harder to spot, at the top of this and every forum is a post titled 'How to use this forum, please read'. Please read it, then come back and ask again.

i want to do this with mills or other function that does not stop the program

See my
http://www.thebox.myzen.co.uk/Tutorial/State_Machine.html
Or Robin2's several things at once
http://forum.arduino.cc/index.php?topic=223286.0