# Function: bounceEffect() (/pixi-vn/index/namespaces/effects/functions/bounceEffect)



\> **bounceEffect**(`alias`, `options?`, `priority?`): `Promise`\<`string`\[] | `undefined`>

Defined in: [src/canvas/functions/canvas-effect.ts:180](https://github.com/DRincs-Productions/pixi-vn/blob/5bb5bb1f92e38998ea2f477b600168d8da3ece19/src/canvas/functions/canvas-effect.ts#L180)

Bounce the canvas element: a one-directional displacement that repeatedly returns to rest, each
bounce shrinking towards rest by [BounceEffectProps.decay](/pixi-vn/index/interfaces/DecayingEffectProps#decay). Like a dropped ball settling.

## Parameters [#parameters]

### alias [#alias]

`string`

The alias to identify the component.

### options? [#options]

[`BounceEffectProps`](/pixi-vn/index/interfaces/BounceEffectProps) = `{}`

Animation options.

### priority? [#priority]

`UPDATE_PRIORITY`

The priority of the PixiJS ticker.

## Returns [#returns]

`Promise`\<`string`\[] | `undefined`>
