Gave animationDuration an initial value of 0 to avoid warning in newer X...

...code versions.