setKeyframes

external fun setKeyframes(keyframes: ReadonlyArray<Keyframe>?)(source)
external fun setKeyframes(keyframes: PropertyIndexedKeyframes?)(source)

The setKeyframes() method of the KeyframeEffect interface replaces the keyframes that make up the affected KeyframeEffect with a new set of keyframes.

MDN Reference