# Glass strike

Strike a glass panel, shatter it and optionally resolve to a check.

Source: https://legend.so/slides/effects/glass-strike/

Legend Slides: Preview.

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

[Glass strike preview](https://legend.so/slides/effects/previews/glass-strike/f5d3411a237cda2844144096a35f594d7ab9f77b53a0bdd9ee9947f562865487.mp4)

Video recorded in Legend Slides for macOS (development build).

[Install in Slides](legend-slides://effects/install?pack=materials&version=1.0.0)[Open example in Slides](legend-slides://effects/example?effect=glass-strike)[Download example](https://legend.so/slides/effects/examples/glass-strike/10451e120460935a335878e7ece604339f6d079082aa96df711787d269ed74d5.mdx)

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

## Use it in a deck

```mdx
---
title: Glass strike
---

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


# Glass strike

<View style={{ width: 1696, height: 650 }}>
<Steps count={2}>{step => <GlassStrike width={1696} height={650} centerX={848} panelHalfHeight={150} crossed={step > 0} resolveToCheck />}</Steps>
</View>
```

## Configure

**crossed**

Trigger the impact on a reveal step.

**resolveToCheck**

Resolve the X into a check.

**geometry**

Customize the material and stroke geometry.

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

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