Change the scene mode in Cesium gradually in every Interval

I have a task which I want to change the scene mode in Cesium in every interval.

I managed to change the scene mode in every Interval using refresh feature. However, the output is not so nice as it changes quickly. So is it possible to change the scene mode gradually I mean slowly? My code is found below.

Hello World! @import url(../Build/Cesium/Widgets/widgets.css); html, body, #cesiumContainer { width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden; }

My code is that by default the scene mode is 3D. I create a variable which is 3D. When it is 3D, it will change to 2D and vice versa.

Can you help me to change the scene mode gradually.

Instead of setting scene.mode directly, try using the scene.morph functions. They take the duration the the transition as a parameter.

Thanks,

Gabby