# Interactive glass

A WebGPU glass atmosphere.

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

Legend Slides: Preview.

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

[Interactive glass preview](https://legend.so/slides/effects/previews/interactive-glass/4b56344baa04cd00c6aaf746f05c4b9fe2c31ddf7184ad7102b1190af3e181ba.mp4)

Recorded in Legend Slides for macOS (release build).

[Install in Slides](legend-slides://effects/install?pack=backgrounds&version=1.0.3) [Open example](legend-slides://effects/example?effect=interactive-glass) [Download example](https://legend.so/slides/effects/examples/interactive-glass/dffc8ef5fa5906e09bdb5a8afe8c2ce53ec245bd642602241c96dff760693795.mdx)

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

## Use it in a deck

interactive-glass.mdx

```mdx
---
title: Interactive glass
---

import { View, Text } from "react-native";
import { TypeGPUGlassBackground } from "slides:backgrounds/TypeGPUGlassBackground";

export function GlassExample({renderer}) { return <TypeGPUGlassBackground>{renderer}</TypeGPUGlassBackground>; }

# Interactive glass

<View style={{ width: 1696, height: 650 }}>
<GlassExample renderer={<TypeGPUShader />} />
<Text style={{ color: "#f8fafc", fontSize: 88, textAlign: "center", marginTop: 230 }}>Glass in motion</Text>
</View>
```

## Configure

**Background**

Use the host wrapper for priority and intensity.

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

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