Initial commit
This commit is contained in:
36
registry/components/TextAnimation.json
Normal file
36
registry/components/TextAnimation.json
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"name": "TextAnimation",
|
||||
"description": "Unified scroll-triggered text animation component with three distinct animation types and two trigger variants.",
|
||||
"constraints": {
|
||||
"textRules": {
|
||||
"text": {
|
||||
"required": true,
|
||||
"example": "This animation responds to scroll. Watch as the text comes to life."
|
||||
}
|
||||
}
|
||||
},
|
||||
"propsSchema": {
|
||||
"type?": "'entrance-slide' | 'reveal-blur' | 'background-highlight'",
|
||||
"text": "string",
|
||||
"as?": "'div' | 'span' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' (default: 'div')",
|
||||
"children?": "React.ReactNode",
|
||||
"variant?": "'trigger' | 'words-trigger'",
|
||||
"className?": "string",
|
||||
"duration?": "number",
|
||||
"stagger?": "number",
|
||||
"start?": "string",
|
||||
"end?": "string",
|
||||
"ariaLabel?": "string",
|
||||
"gradientColors?": "{ from: string, to: string }"
|
||||
},
|
||||
"usageExample": "",
|
||||
"do": [
|
||||
"Use for general use"
|
||||
],
|
||||
"dont": [],
|
||||
"editRules": {
|
||||
"textOnly": true,
|
||||
"layoutLocked": true,
|
||||
"styleLocked": true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user