range finder and LEDs

Thanks Paul,
Sorry, to be clear- I'd like the lights to evenly fade up and down in their brightness when an object is at or beyond a defined distance. The effect is like how the Apple start button "throbs" up and down...