How to make a box in derma fade when closed?

Hello, I am creating a gamemode in Garry’s Mod 13 and I want to make it look ‘cool’. I was wanting to create a piece of derma to fade when closed.
Is this possible? and if it is please show me how to do this.

This should work. Remove the panel from 4th argument callback function.

Thanks.