<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [animateScale](./x-components.animatescale.md)

## animateScale() function

Returns a transition component to wrap an element passed in the default slot and animating its scale using transform and with the transform origin passed as parameter.

**Signature:**

```typescript
animateScale: (animationOrigin?: import("../create-directional-animation-factory").AnimationOrigin) => import("vue").DefineComponent
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  animationOrigin | import("../create-directional-animation-factory").AnimationOrigin | _(Optional)_ The origin of the transform animation. This means where the animation starts and ends. For example 'left' makes the element animate from the left and back; 'left-to-right' makes it animate from left to right. If not provided the default value is 'top'. |

**Returns:**

import("vue").DefineComponent

A Transition Component.

