replace now works with keyframes