\When the switch is closed the capacitor charges and the led lights When the switch is opened the capacitor discharges keeping the led alight for a short time fading to off.
in everycircuit
with timing set to s/s you can't see a fade
with timing set to 10 ms/s there is a fade
switch 2 allows you to see the circuit without the capacitor
timing 10 ms/s
550uF ≈ 1/2 second to fade
1.1mF ≈ second to fade
2.2mF ≈ 2 seconds to fade
4.4mF ≈ 4 seconds to fade
4.4mF ≈ 8 seconds to fade
Breadboard
power 5v
resistor 1kohm
capacitor 47uf
led lights brightly fades in 1/2 second
everycircuit
timing s/s
power 5v
resistor 1kohm
capacitor 47uf
led hardly glows << why
video
www.youtube.com/watch?v=4Hg7SLhetXM