Your system asks for reduced motion, so VFX-JS draws nothing. Demos on this site show plain HTML.

Type

PixelStretchParams

effects/src/pixel-stretch.ts:51 ↗
import type { PixelStretchParams } from "@vfx-js/effects";

Properties

angle

angle: number

Stretch direction, in degrees.

centerX

centerX: number

Effect center X, in [0, 1].

centerY

centerY: number

Effect center Y, in [0, 1].

offset

offset: number

Stretch line position along the axis, in [-1, 1] (0 = center).

reach

reach: number

Height of the stretch band, as a fraction of the element.

smoothness

smoothness: number

Soften the band's edges, in [0, 1].