# Add Animation Block to the Scene

**addAnimationBlock:**

| refId            | objId of the object                                          | optional(for camera) | string                                                                   |
| ---------------- | ------------------------------------------------------------ | -------------------- | ------------------------------------------------------------------------ |
| type             | type of animation                                            | required             | "rotate" \| "focus" \| "scale" \| "pan" \| "zoom" \| "stretch" \| "fade" |
| panDirection     | default: ‘Left’ (for type=’pan’)                             | optional             | ‘L-R’ \| ‘R-L’ \| ‘T-B’ \| ‘B-T’                                         |
| zoomScale        | default: 100 (for type=’zoom’)                               | optional             | number                                                                   |
| rotationAxis     | <p>default: ‘X’ (for type='rotate')</p><p><br></p>           | optional             | ‘X’ \| ‘Y’ \| ‘Z’                                                        |
| noofRotations    | default: 1 (for type='rotate')                               | optional             | number                                                                   |
| focusDirection   | default: ‘Left’ (for type=’focus’)                           | optional             | ‘Left’ \| ‘Right’ \| ‘Top’ \| ‘Bottom’                                   |
| scaleType        | default: ‘SCALE\_UP’ (for type=’scale’)                      | optional             | ‘SCALE\_UP’ \| ‘SCALE\_DOWN’                                             |
| zoomScale        | default: 100 (for type=’scale’)                              | optional             | number                                                                   |
| stretchDirection | <p>default: ‘Horizontal’ (for type=’stretch’)</p><p><br></p> | optional             | ‘Horizontal’ \| ‘Vertical’                                               |
| fadeType         | default: 1 (for type=’fade’)                                 | optional             | ‘FADE\_IN' \| ‘FADE\_OUT’                                                |
