Function: shine()
shine(
options?:object):ShineEffect
Creates one reflection shared by all elements decorated with it.
Parameters
| Parameter | Type | Description |
|---|---|---|
options | { angle?: number; color?: string; highlight?: string; intensity?: number; progress?: number; surface?: "fill" | "auto" | "outline"; width?: number; } | - |
options.angle? | number | Travel direction in degrees; 0 goes right, positive goes clockwise. Default: -20. |
options.color? | string | CSS shoulder colour. Default: the stage theme's secondary colour. |
options.highlight? | string | CSS core colour. Default: a lighter version of color. |
options.intensity? | number | Nonnegative strength multiplier. Default: 1. |
options.progress? | number | Sweep fraction from 0 to 1. Both endpoints are clear. Default: 0. |
options.surface? | "fill" | "auto" | "outline" | Receiving surface. Auto uses outlines for ghost shapes and fills otherwise. Default: "auto". |
options.width? | number | Band width as a fraction of the receivers' projected span. Default: 0.22. |