How to pause animation?

1. A concise explanation of the problem you’re experiencing.

I want to pause my model animation,Even if timeline is still playing

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

var startTime =;
var animation = model.activeAnimations.add({
  name : 'model',
  startTime : startTime,
  stopTime : Cesium.JulianDate.addSeconds(startTime, 10, new Cesium.JulianDate()),


I tried this code,It can make the model stop playing after 10 seconds,But I don’t know how to continue playing,What should I do?

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

4. The Cesium version you’re using, your operating system and browser.

If you want the animation to keep playing, don’t include a start or stop time, and set it to loop. Let me know if that works.

What kind of project are you working on?

Hi Omar

Thanks for your response,my project is working on cargo airport,and this is my model:

I want to pause for a while when my vehicle is up, and then descend when I need it.set it to loop may not be what I need

在 2020年3月10日星期二 UTC+8下午8:37:08,Omar Shehata写道:

You can set the animation to pause/stop at any time. Here’s a Sandcastle that shows how to play and stop by clicking the buttons int he top left.

For your use case, it might be better to have two separate animations defined in your glTF, one that goes up, and one that goes down, so you can play the one you need without having to manually pause it at the right moment.