Slowly dmming guages

i wasnt sure what i should make as my title. But im planing on running oil pressure and oil tempature guages and i was wondering how i could make it so when i turn my car off they would slowly dimm like newer cars when you close the door and the dome light slowly dimms. Im fairly good at wiring but i cant remember how to do this?