Default animation duration
animateConditionally method to implement common logic for deciding whether to animate a set of changes