cycling 4 LEDs at varrying speeds

But I want to do it automatically.

You have our permission. If you need help with that, you must define when/under what conditions to change the value, and how much to change it by.