Added fix for safari animation flickering