Exposed applyKeyframes function