# How to add tween animation to group?

**URL:** <https://phaser.discourse.group/t/how-to-add-tween-animation-to-group/758>\
**Category:** Phaser 3\
**Created:** [January 15, 2019, 6:21am UTC](https://phaser.discourse.group/t/how-to-add-tween-animation-to-group/758 "2019-01-15T06:21:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![burkgames](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/burkgames/32/501_2.png) [@burkgames](https://phaser.discourse.group/u/burkgames)\
**Post date:** [January 15, 2019, 6:21am UTC](https://phaser.discourse.group/t/how-to-add-tween-animation-to-group/758/1 "2019-01-15T06:21:44Z")

</div>

Hi, all~  
I want to set tween to group，Not to element in group.  
Thx everyone~

---

<div class="post-metadata">

**Author:** ![Telinc1](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/telinc1/32/60_2.png) [@Telinc1](https://phaser.discourse.group/u/Telinc1)\
**Post date:** [January 15, 2019, 6:26am UTC](https://phaser.discourse.group/t/how-to-add-tween-animation-to-group/758/2 "2019-01-15T06:26:24Z")

</div>

Try setting the Tween’s target to `group.getChildren()`.

---

<div class="post-metadata">

**Author:** ![burkgames](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/burkgames/32/501_2.png) [@burkgames](https://phaser.discourse.group/u/burkgames)\
**Post date:** [January 15, 2019, 6:33am UTC](https://phaser.discourse.group/t/how-to-add-tween-animation-to-group/758/3 "2019-01-15T06:33:33Z")

</div>

Thank you very much~

But i don’t want to change element in group，I just want to change group…emmm…

for example：  
[https://labs.phaser.io/view.html?src=src\tweens\checkerboard%203.js](https://labs.phaser.io/view.html?src=src%5Ctweens%5Ccheckerboard%203.js)

I want to add scale/rotation tween animation to blocks group…what should I do？

---

<div class="post-metadata">

**Author:** ![Telinc1](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/telinc1/32/60_2.png) [@Telinc1](https://phaser.discourse.group/u/Telinc1)\
**Post date:** [January 15, 2019, 7:23am UTC](https://phaser.discourse.group/t/how-to-add-tween-animation-to-group/758/4 "2019-01-15T07:23:46Z")

</div>

I don’t exactly understand what you’re asking. The example you linked adds a tween with an increasing delay to each child of a group. If you want to replicate it, look at its code to see how it iterates the group.

Keep in mind that groups in Phaser 3 are just a list of objects that aren’t treated as one like in Phaser 2. If you want to operate on the group itself, you should instead use a container.
