# Function: offsetBox()

[**lifecycle-kit**](https://jonbogaty.com/lifecycle-kit/api/readme/index.md)

***

[lifecycle-kit](https://jonbogaty.com/lifecycle-kit/api/readme/index.md) / [assemblage](https://jonbogaty.com/lifecycle-kit/api/assemblage/readme/index.md) / offsetBox


# Function: offsetBox() {#function-offsetbox}


> **offsetBox**(`box`, `dx`, `dy`): [`Box`](https://jonbogaty.com/lifecycle-kit/api/assemblage/interfaces/box/index.md)

Defined in: [assemblage/shadow.ts:152](https://github.com/jbcom/lifecycle-kit/blob/074e4e7b8038d3e2de9eb44c4b5b5aee0ef02b48/src/assemblage/shadow.ts#L152)

Slide a box along a direction. A shadow is a silhouette, displaced.


## Parameters {#parameters}



### box {#box}


[`Box`](https://jonbogaty.com/lifecycle-kit/api/assemblage/interfaces/box/index.md)


### dx {#dx}


`number`


### dy {#dy}


`number`


## Returns {#returns}


[`Box`](https://jonbogaty.com/lifecycle-kit/api/assemblage/interfaces/box/index.md)
