Removing offsetWidth to avoid browser reflow