changed how @keyframe rules are added to the document