custom animation frame for safari before 7