@motion-script/core / ShadowProp
Interface: ShadowProp
Defined in: attributes/shape/shadow/resolver.ts:8
Shadow prop and resolved types, resolver, and array lerp.
Properties
blur?
optionalblur?:number
Defined in: attributes/shape/shadow/resolver.ts:9
fill?
optionalfill?:Fill
Defined in: attributes/shape/shadow/resolver.ts:13
Any loose fill: a CSS color string, fill prop object, resolved fill, or FillChain/array of layers.
inner?
optionalinner?:boolean
Defined in: attributes/shape/shadow/resolver.ts:15
When true, the shadow is cast inward (inset) instead of as a drop shadow. Defaults to false.
offset?
optionaloffset?:Vector2
Defined in: attributes/shape/shadow/resolver.ts:11
Offset of the shadow from the shape, in px. Defaults to { x: 0, y: 0 }.
spread?
optionalspread?:number
Defined in: attributes/shape/shadow/resolver.ts:22
Grows (positive) or shrinks (negative) the shadow's silhouette before it
is offset and blurred, like CSS box-shadow spread. Only honoured for
ellipses and rectangles, whose geometry can be resized cleanly; ignored
for other shapes. Defaults to 0.