Remove warning: Variable 'animationDuration' may be uninitialized when used here