# <water>

Shows its content through moving water: a shader bends it along waves, with caustics, tint and tap ripples.

Category: Display.

```ham
<water intensity="0.5"
       scale="140"
       chop="0.2"
       caustics="0.6"
       style="rounded-2xl">
    <img src="https://hypeapps.dev/gallery/assets/landscape.jpg"
         style="w-full h-300"
         fit="cover"/>
</water>
```

How Hype Apps draws it on a phone: [light](https://hypeapps.dev/img/tags/water-light.webp), [dark](https://hypeapps.dev/img/tags/water-dark.webp).

## Attributes

| Name | What it does | Default |
|---|---|---|
| `caustics` | Bright light lines where the surface focuses light: true (0.6), or a strength 0 to 1. | `false` |
| `chop` | 0 calm to 1 choppy: finer, sharper waves on top. | `0.3` |
| `intensity` | How far the water bends the content, 0 (flat) to 1. | `0.4` |
| `ripples` | A tap sends a ring through the water. | `true` |
| `scale` | Wavelength of the main waves, px. | `120` |
| `speed` | How fast the water moves (0 = still). | `1` |
| `tint` | A color over the content; its alpha is how much (#1E90FF33). |  |

Any tag also takes gestures: `@on.tap`, `@on.longpress`, `@on.doubletap` and `@on.swipeleft` (and right, up and down). `@click` runs on a tap too.

## Related tags

- [`<img>`](https://hypeapps.dev/docs/reference/img.md): Shows a picture from a URL or the app's files, sized and cropped by its style.
- [`<ad>`](https://hypeapps.dev/docs/reference/ad.md): An ad slot in the page, filled with a banner from AdMob in a built app.
- [`<avatar>`](https://hypeapps.dev/docs/reference/avatar.md): A round avatar from a photo, initials or an icon, in any size and color.
- [`<badge>`](https://hypeapps.dev/docs/reference/badge.md): A small count or dot pinned to the corner of an icon or any other element.
- [`<canvas-tool>`](https://hypeapps.dev/docs/reference/canvas-tool.md): A drawing tool written in HAM and loaded into a draw pad as a plugin: touch handlers, state and options.
- [`<caption>`](https://hypeapps.dev/docs/reference/caption.md): A table caption, shown as a label above the table.
- [`<carousel>`](https://hypeapps.dev/docs/reference/carousel.md): Swipeable pages side by side, one at a time, with dots below that show which page is on screen.
- [`<chart>`](https://hypeapps.dev/docs/reference/chart.md): A line, area, bar or sparkline chart drawn from a list of values; a tap shows a point's value.

All tags: https://hypeapps.dev/docs/reference.md · The full reference: https://hypeapps.dev/llms.txt
