Do not animate if duration set to zero

Update minified version, hoist vars
Merge pull request #1 from anotherchrisberry/support-disable-animation

Do not animate if duration set to zero