function slideIn(toPage, backwards) { ... ... ... setTimeout(function() { $toPage.css('webkitTransform', 'none'); $toPage.css('transform', 'none'); }, 0); }