Babylonjs animation speed rotation

This is the function i’ve created for running the animaton.

async function playSecondAnimation() {
magnetAnimation = scene.getAnimationGroupByName(“magnet_rotation”);

magnetAnimation.start(true, 1, 200);

Now my question is I want to increase the animation speed slowly from 1,1.1,1.2,…,3 etc is it possible please let me know.

let speedLevel =1.1;
magnetAnimation.start(true, speedLevel, 200);

do Repeat until you reach your desired speed using RenderObservable, coroutines, iervals, etc.

speedLevel += 0.1;
magnetAnimation.speedRatio = speedLevel;