# Polyline animation

**URL:** <https://community.cesium.com/t/polyline-animation/3341>\
**Category:** CesiumJS\
**Created:** [November 19, 2015, 11:47am UTC](https://community.cesium.com/t/polyline-animation/3341 "2015-11-19T11:47:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![petrikofff](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@petrikofff](https://community.cesium.com/u/petrikofff)\
**Post date:** [November 19, 2015, 11:47am UTC](https://community.cesium.com/t/polyline-animation/3341/1 "2015-11-19T11:47:16Z")

</div>

Hello! I very new in Cesium and I have problems with animation of my arrow entity. So I have arrow entity:

var arrow = viewer.entities.add({  
&nbsp;&nbsp;&nbsp;&nbsp;name : 'Purple straight arrow at height',  
&nbsp;&nbsp;&nbsp;&nbsp;polyline : {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;positions : Cesium.Cartesian3.fromDegreesArrayHeights([100, 100, 0, 150, 150, 0]),  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width : 10,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;followSurface : true,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;material : new Cesium.PolylineArrowMaterialProperty(Cesium.Color.BLUE),  
&nbsp;&nbsp;&nbsp;&nbsp;show: false  
&nbsp;&nbsp;&nbsp;&nbsp;}  
&nbsp;&nbsp;  
});

Tell me please, how can I move this arrow to abother coordinates, with animation of movement?Please give me whole code to do this!  
(I alredy tryed to move arrow by updating it's posistion in while loop, but there is no animation, only end position was show. )

---

<div class="post-metadata">

**Author:** ![hannah](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/hannah/32/4509_2.png) [@hannah](https://community.cesium.com/u/hannah)\
**Post date:** [November 20, 2015, 4:11am UTC](https://community.cesium.com/t/polyline-animation/3341/2 "2015-11-20T04:11:13Z")

</div>

Hello,

Please see my answer in this post: [https://groups.google.com/d/msg/cesium-dev/3zHCkexUFc4/ysIceMHUBQAJ](https://groups.google.com/d/msg/cesium-dev/3zHCkexUFc4/ysIceMHUBQAJ)

There is a code example there to show you how to animate a polyline using a CallbackProperty for the positions.

Best,

Hannah

---

<div class="post-metadata">

**Author:** ![petrikofff](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@petrikofff](https://community.cesium.com/u/petrikofff)\
**Post date:** [November 23, 2015, 7:51pm UTC](https://community.cesium.com/t/polyline-animation/3341/3 "2015-11-23T19:51:19Z")

</div>

Thanks a lot!
