1. Reference
  2. Display

<water>

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

Display
water.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>
The snippet drawn by Hype Apps on a phone, in light mode The snippet drawn by Hype Apps on a phone, in dark mode
This snippet as Hype Apps draws it on a phone. It follows this page's light or dark theme.

Attributes

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

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.

This page is also Markdown, and all of HAM is in llms.txt.