fading functionality

fading functionality completed.