DisplacementMap
Distorts child content using another layer's pixels as a displacement map
Props
Prop
Details
sourcestringDefault:
The layer whose pixels drive the displacement — its red/green (or luminance) push the content around
sourcestringDefault: The layer whose pixels drive the displacement — its red/green (or luminance) push the content around
amountnumberDefault:
0.3Overall displacement strength
amountnumberDefault: 0.3Overall displacement strength
channelMode"twoAxis" | "directional"Default:
twoAxisHow the source drives the push — red→X / green→Y, or luminance along a fixed angle
channelMode"twoAxis" | "directional"Default: twoAxisHow the source drives the push — red→X / green→Y, or luminance along a fixed angle
anglenumberDefault:
0Push direction in degrees (used by the Luminance channel mode)
anglenumberDefault: 0Push direction in degrees (used by the Luminance channel mode)
edges"stretch" | "transparent" | "mirror" | "wrap"Default:
mirrorHow to handle edges when distortion pushes content out of bounds
edges"stretch" | "transparent" | "mirror" | "wrap"Default: mirrorHow to handle edges when distortion pushes content out of bounds