# Babylonjs animation speed rotation

**URL:** <https://forum.babylonjs.com/t/babylonjs-animation-speed-rotation/41863>\
**Category:** Questions\
**Created:** [June 23, 2023, 5:47am UTC](https://forum.babylonjs.com/t/babylonjs-animation-speed-rotation/41863 "2023-06-23T05:47:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neeraj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/neeraj/32/29497_2.png) [@Neeraj](https://forum.babylonjs.com/u/Neeraj)\
**Post date:** [June 23, 2023, 5:47am UTC](https://forum.babylonjs.com/t/babylonjs-animation-speed-rotation/41863/1 "2023-06-23T05:47:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![11128](https://avatars.discourse-cdn.com/v4/letter/1/d07c76/32.png) [@11128](https://forum.babylonjs.com/u/11128)\
**Post date:** [June 23, 2023, 6:33am UTC](https://forum.babylonjs.com/t/babylonjs-animation-speed-rotation/41863/2 "2023-06-23T06:33:46Z")

</div>

> 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;
