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

Sorry ferade not micro