@motion-script/core / fillProperty
Variable: fillProperty
constfillProperty: (opts?) => (target,propertyKey) =>void
Defined in: attributes/properties/typed.ts:105
A fill-layer property: accepts everything the built-in fill prop does (a CSS
string, a fill prop object, a Fills chain, or an array of them) and lerps
layer-by-layer.
Note this only makes the property behave like fill; the node still has to
paint it (ctx.draw(g.fill(this.glow as FillResolved[]))). Assets referenced
by the fill (images, videos, 3D surfaces) are discovered from that draw, so
nothing extra is needed to make them load.
Parameters
opts?
AttributePropOptions<Fill, FillResolved[]>
Returns
(target, propertyKey) => void