Fix bug with flickering transitions in ios6 safari