Moire

Overlapping wave grids that drift into interference fringes.

Two soft wave lattices share a field and leave slow moire bands. Closer to print optics than particles.

14px
18°
12°
1
0.72
0.5
tsx
import { Moire } from "@/components/motion/moire"export function Example() {  return (    <Moire      className="h-[420px] w-full"      color="#3b82f6"      spacing={14}      angle={18}      skew={12}      speed={1}      contrast={0.72}      opacity={0.5}    />  )}

Installation

npx @arctis-sh/@arctis-sh/ui@latest add moire

Usage

import { Moire } from "@/components/motion/moire"
<Moire  className="h-[420px] w-full"  color="#3b82f6"  spacing={14}  skew={12}/>

API Reference

Moire

PropTypeDefault
colorstring#3b82f6
backgroundColorstring—
spacingnumber14
anglenumber18
skewnumber12
speednumber1
contrastnumber0.72
opacitynumber0.5
softnumber2
dprnumber1.5
classNamestring—
childrenReactNode—

Also accepts the other native div attributes. spacing is in pixels. angle and skew are in degrees.