ITextMaskProps
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.
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.
- textstring
- Text to mask. Ignored when the default slot is provided.
- backgroundrequisstring | IGradient
- Background painted behind the text glyphs. Accepts a gradient object, raw CSS gradient string, preset name or image URL. Required.
- animatedbooleanfalse
- Animates the background. Combined with animationType to pick a keyframe set.
- animationDurationstring'3s'
- Duration of one animation cycle. Accepts any CSS <time> value ('3s', '750ms', …).
- animationTypeTTextMaskAnimation'pan'
- Animation strategy. Default is 'pan'.
- alignTBlockquoteAlign'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