# Animate camera target switching

**URL:** <https://forum.babylonjs.com/t/animate-camera-target-switching/29007>\
**Category:** Questions\
**Created:** [April 2, 2022, 7:52am UTC](https://forum.babylonjs.com/t/animate-camera-target-switching/29007 "2022-04-02T07:52:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Myrmod](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@Myrmod](https://forum.babylonjs.com/u/Myrmod)\
**Post date:** [April 2, 2022, 7:52am UTC](https://forum.babylonjs.com/t/animate-camera-target-switching/29007/1 "2022-04-02T07:52:18Z")

</div>

Hello,

my head hurts and I cannot think anymore, so I created a playground in search for wisdom:

> **[Babylon.js Playground](https://www.babylonjs-playground.com/#UU7RQ%232627)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

Clicking on one of the two buttons, I want the ArcRotateCamera to animate the position as well as the target switch.

How can I make this animation smooth?

Best regards

---

<div class="post-metadata">

**Author:** ![Myrmod](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@Myrmod](https://forum.babylonjs.com/u/Myrmod)\
**Post date:** [April 2, 2022, 8:03am UTC](https://forum.babylonjs.com/t/animate-camera-target-switching/29007/2 "2022-04-02T08:03:55Z")

</div>

well, now it works in the playground \>.\>

EDIT:  
Now it also work on [Showroom | Svelte Babylon](https://svelte-babylon.netlify.app/examples/showroom/showroom.html) 😃
