Button problem

when I was surfing the internet I found some nice flash buttons . These buttons would turn for example green en then when you roll out they would slightly ( so not in 1 step) turn back white. I’ve tried to recreate them, but when i published the roll out effect didn’t always work ( it went back in 1 step) . Does anyone know what i’ve done wrong?