Minor to change to prevent animations from queueing up

Edited the animation function so that animations wont build up a queue. In my case, I'm using the plugin to navigate and i noticed it building up a queue when quickly going through my navigation.