ITextMaskProps

interface
Data Display

Props for <OrigamTextMask> — a typographic "window" component that paints text as a transparent fill over an animated background (background-clip: text). Accepts gradient objects, raw CSS gradient strings, preset names or image URLs.

TypeScript

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

Héritage

Hérite de

Interfaces parentes dont celle-ci hérite. Leurs propriétés sont disponibles pour tout consommateur de cette interface.

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

text
string
Text to mask. Ignored when the default slot is provided.
background
requis
string | IGradient
Background painted behind the text glyphs. Accepts a gradient object, raw CSS gradient string, preset name or image URL. Required.
animated
boolean
false
Animates the background. Combined with animationType to pick a keyframe set.
animationDuration
string
'3s'
Duration of one animation cycle. Accepts any CSS <time> value ('3s', '750ms', …).
animationType
TTextMaskAnimation
'pan'
Animation strategy. Default is 'pan'.
align
TBlockquoteAlign
'left'
text-align of the masked content.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Animated gradient headline

html