| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "blockenberg/split-text", |
| 5 |
"title": "Split Text", |
| 6 |
"category": "bkbg-effects", |
| 7 |
"icon": "editor-break", |
| 8 |
"description": "Scroll-triggered per-word or per-character text reveal animation. Each word or character animates in sequentially as the block enters the viewport.", |
| 9 |
"keywords": [ |
| 10 |
"split", |
| 11 |
"text", |
| 12 |
"animation", |
| 13 |
"scroll", |
| 14 |
"reveal", |
| 15 |
"word", |
| 16 |
"stagger", |
| 17 |
"cinematic" |
| 18 |
], |
| 19 |
"textdomain": "blockenberg", |
| 20 |
"editorScript": "bkbg-split-text-editor", |
| 21 |
"editorStyle": "bkbg-split-text-style", |
| 22 |
"style": "bkbg-split-text-style", |
| 23 |
"viewScript": "bkbg-split-text-frontend", |
| 24 |
"supports": { |
| 25 |
"html": false, |
| 26 |
"anchor": true, |
| 27 |
"className": true, |
| 28 |
"align": [ |
| 29 |
"wide", |
| 30 |
"full" |
| 31 |
] |
| 32 |
}, |
| 33 |
"attributes": { |
| 34 |
"text": { |
| 35 |
"type": "string", |
| 36 |
"default": "Words that reveal themselves one by one as you scroll." |
| 37 |
}, |
| 38 |
"tag": { |
| 39 |
"type": "string", |
| 40 |
"default": "h2" |
| 41 |
}, |
| 42 |
"splitType": { |
| 43 |
"type": "string", |
| 44 |
"default": "words" |
| 45 |
}, |
| 46 |
"animation": { |
| 47 |
"type": "string", |
| 48 |
"default": "fade-up" |
| 49 |
}, |
| 50 |
"stagger": { |
| 51 |
"type": "number", |
| 52 |
"default": 80 |
| 53 |
}, |
| 54 |
"duration": { |
| 55 |
"type": "number", |
| 56 |
"default": 600 |
| 57 |
}, |
| 58 |
"threshold": { |
| 59 |
"type": "number", |
| 60 |
"default": 0.15 |
| 61 |
}, |
| 62 |
"repeat": { |
| 63 |
"type": "boolean", |
| 64 |
"default": false |
| 65 |
}, |
| 66 |
"ease": { |
| 67 |
"type": "string", |
| 68 |
"default": "cubic-bezier(0.22,1,0.36,1)" |
| 69 |
}, |
| 70 |
"fontSize": { |
| 71 |
"type": "number", |
| 72 |
"default": 48 |
| 73 |
}, |
| 74 |
"fontWeight": { |
| 75 |
"type": "string", |
| 76 |
"default": "800" |
| 77 |
}, |
| 78 |
"textAlign": { |
| 79 |
"type": "string", |
| 80 |
"default": "center" |
| 81 |
}, |
| 82 |
"textColor": { |
| 83 |
"type": "string", |
| 84 |
"default": "#111827" |
| 85 |
}, |
| 86 |
"lineHeight": { |
| 87 |
"type": "number", |
| 88 |
"default": 1.2 |
| 89 |
}, |
| 90 |
"letterSpacing": { |
| 91 |
"type": "number", |
| 92 |
"default": 0 |
| 93 |
}, |
| 94 |
"textTransform": { |
| 95 |
"type": "string", |
| 96 |
"default": "none" |
| 97 |
}, |
| 98 |
"paddingTop": { |
| 99 |
"type": "number", |
| 100 |
"default": 60 |
| 101 |
}, |
| 102 |
"paddingBottom": { |
| 103 |
"type": "number", |
| 104 |
"default": 60 |
| 105 |
}, |
| 106 |
"wrapBg": { |
| 107 |
"type": "string", |
| 108 |
"default": "" |
| 109 |
}, |
| 110 |
"highlightWords": { |
| 111 |
"type": "string", |
| 112 |
"default": "" |
| 113 |
}, |
| 114 |
"highlightColor": { |
| 115 |
"type": "string", |
| 116 |
"default": "#6c3fb5" |
| 117 |
}, |
| 118 |
"textTypo": { |
| 119 |
"type": "object", |
| 120 |
"default": {} |
| 121 |
} |
| 122 |
} |
| 123 |
} |
| 124 |
|