a nicer fade out
scripted update of code from master at ff0b769 a nicer fade out