MotionScript

@motion-script/core


@motion-script/core / ScanlinesEffect

Interface: ScanlinesEffect

Defined in: attributes/shape/effects/implementations/scanlines.ts:11

CRT scanlines — periodic dark bands across the content.

offset scrolls the band pattern; animating it past spacing produces the slow vertical roll of a mistuned display, and it wraps, so a linear tween of offset loops seamlessly.

Extends

Properties

angle

angle: number

Defined in: attributes/shape/effects/implementations/scanlines.ts:22

Band angle in degrees. 0 = horizontal bands.


darkness

darkness: number

Defined in: attributes/shape/effects/implementations/scanlines.ts:18

0–1 how far the bands darken. 0 = off.


mode?

optional mode?: EffectMode

Defined in: attributes/shape/effects/effect-data.ts:83

Inherited from

ModedEffect.mode


offset

offset: number

Defined in: attributes/shape/effects/implementations/scanlines.ts:20

Band offset in px — animate it to roll the pattern.


spacing

spacing: number

Defined in: attributes/shape/effects/implementations/scanlines.ts:14

Distance between band centres, in px.


thickness

thickness: number

Defined in: attributes/shape/effects/implementations/scanlines.ts:16

0–1 share of each period the dark band covers.


type

type: "scanlines"

Defined in: attributes/shape/effects/implementations/scanlines.ts:12