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

Type

SliceShiftParams

effects/src/slice-shift.ts:44 ↗
import type { SliceShiftParams } from "@vfx-js/effects";

Properties

angle

angle: number

Strip orientation, in degrees. 0 = strips stack horizontally.

centerX

centerX: number

Effect center X, in [0, 1].

centerY

centerY: number

Effect center Y, in [0, 1].

random

random: number

Per-strip random shift, in [0, 1].

shift

shift: number

Per-strip shift toward the center, in strip-size units. 1 = every strip shows the center strip.

size

size: number

Strip size in pixels.