MotionScript

@motion-script/core


@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?

optional blur?: number

Defined in: attributes/shape/shadow/resolver.ts:9


fill?

optional fill?: 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?

optional inner?: 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?

optional offset?: 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?

optional spread?: 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.