Animated modal dismissal