How do I make my dome light fade away when you shut the door?

67's Dart 273 knows it's just a RC time constant. You just need a capacitor with the correct micro ferade rating.