fix keyframe compatibility issue in Safari