Skip to content
Calm motion: animations on this site only fade, with no movement

Background ​

Tiled texture layer

A decorative layer behind a page or a section: a tiled image, or the built-in hairline pattern. It is hidden from screen readers and never takes clicks.

Basic

pattern fallback

offset -40, opacity .4

  • mode="fixed" pins it to the viewport (put it once, at page level). absolute (default) fills the nearest positioned parent.
  • offset shifts the tile vertically, so neighboring pages can use different parts of one image.
  • Keep text over it readable: lower opacity rather than relying on the text color.

Usage ​

ts
import { BlessBackground } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
srcstring—tile image; omit for a built-in hairline pattern
offsetstring | number0vertical tile offset (number = px). Source site used 0 / -300 / -600 per page
mode"fixed" | "absolute""absolute"fixed = viewport (use at page level); absolute = fills positioned parent
opacitynumber1

Released under the MIT License. Character names and artwork belong to their owners.