Fixed animation issue

Previous code would overwrite any animation passed through the `options` argument. This commit fixes this issue.