This is a circuit that I designed for Week 1 of Resolution Hardware
My circuit has LEDs that turn on one by one when the switch is turned on and fade out one by one when my switch is turned off..
It works with the help of RC timing. I have used resistors and capacitors to control the amount of current that goes into the LEDs at a time. The capacitors charge when the switch is on and discharge when the switch is off. As the capcitor that is connect to Voltage charges, it causes a delay in termms of how the LEDs recieve the current, causing them to light up one by one. When the capcitors discharge, they provide current to the LEDs for a bit, which causes them to fade out!