# Image shatter

Reveal an image, then break it into falling pieces.

Source: https://legend.so/slides/effects/image-shatter/

Legend Slides: Preview.

[All effects](https://legend.so/slides/effects/)

[Image shatter preview](https://legend.so/slides/effects/previews/image-shatter/5e5581355f3b6b5b753896799dbb32cd558d8f30b59b1976442f09093d4faf47.mp4)

Recorded in Legend Slides for macOS (release build).

[Install in Slides](legend-slides://effects/install?pack=materials&version=1.0.2) [Open example](legend-slides://effects/example?effect=image-shatter) [Download example](https://legend.so/slides/effects/examples/image-shatter/fe26639536a2d6aaaa3d769cb5d51a283645b9a7cd06df2f3305dab708c8b1a0.mdx)

Requires a Legend Slides build with effect installation support. Installs the materials pack (1.0.2, 41 KB source) and its dependencies. macOS host capabilities: reanimated, skia, webgpu. Installed decks work offline.

## Use it in a deck

image-shatter.mdx

```mdx
---
title: Image shatter
---

import { View, Text } from "react-native";
import { ImageShatter } from "slides:materials/ImageShatter";

export const poster = "https://legend.so/slides/effects/sprites/3a6256d54ebda659424dbc1c9b1f1be0338004cdf97c30fbe0ff2cb4c74b35d4.png";

# Image shatter

<View style={{ width: 1696, height: 650 }}>
<Steps count={3}>{step => <ImageShatter source={poster} width={1696} height={650} revealAtStep={1} geometry={{imageWidth: 900,imageHeight: 500,centerX: 848,centerY: 325,scale: 1}} />}</Steps>
</View>
```

## Configure

**source**

Supply an image URI.

**revealAtStep**

Reveal on this step and shatter on the next.

**geometry**

Supply image size, position, scale and radius.

Only imported effects enter the compiled deck. [Installation and versioning →](https://legend.so/slides/effects/installation/)

[View Markdown](https://legend.so/slides/effects/image-shatter.md)[Report a documentation correction](https://github.com/LegendApp/legend-docs/issues/new?title=Docs%3A+Image+shatter&body=Page%3A+https%3A%2F%2Flegend.so%2Fslides%2Feffects%2Fimage-shatter%0A%0AWhat+is+incorrect+or+missing%3F%0A%0AExpected+behavior+or+supporting+source%3A%0A)
