Material animation test

I have setup a driven relationship between an empty and material, when the empty move, the color will change with it.

I can’t upload gif file now.
It’s stange.
Because I am a new user?

I don’t think the forum accepts animated gifs, but it might accept animated png’s