Here’s the result we’re after:
These are the animated balls
Here I’ve used the balls to switch the lights on and off
Now comes the fun part: I’ve added the feature to create a fading effect when switching the lights on and off
This curve demonstrates the fade. The light fades in within 5 frames and fades out within 10. That gives a smoother look.
The new feature: the lights have a fade-effect. They don’t switch on and off that harshly any more.