| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "blockenberg/text-3d", |
| 5 |
"title": "3D Text", |
| 6 |
"category": "bkbg-effects", |
| 7 |
"icon": "text", |
| 8 |
"description": "Eye-catching 3D extruded text using CSS text-shadow layers and perspective transforms. Supports rotate-on-hover, float animation, and customizable depth, colors and typography.", |
| 9 |
"keywords": [ |
| 10 |
"3d", |
| 11 |
"text", |
| 12 |
"extrude", |
| 13 |
"depth", |
| 14 |
"perspective", |
| 15 |
"shadow", |
| 16 |
"dimensional", |
| 17 |
"effect" |
| 18 |
], |
| 19 |
"textdomain": "blockenberg", |
| 20 |
"editorScript": "bkbg-3d-text-editor", |
| 21 |
"style": "bkbg-3d-text-style", |
| 22 |
"viewScript": "bkbg-3d-text-frontend", |
| 23 |
"supports": { |
| 24 |
"html": false, |
| 25 |
"anchor": true, |
| 26 |
"className": true, |
| 27 |
"align": [ |
| 28 |
"wide", |
| 29 |
"full" |
| 30 |
] |
| 31 |
}, |
| 32 |
"attributes": { |
| 33 |
"text": { |
| 34 |
"type": "string", |
| 35 |
"default": "3D TEXT" |
| 36 |
}, |
| 37 |
"tag": { |
| 38 |
"type": "string", |
| 39 |
"default": "h2" |
| 40 |
}, |
| 41 |
"style3d": { |
| 42 |
"type": "string", |
| 43 |
"default": "extrude" |
| 44 |
}, |
| 45 |
"depth": { |
| 46 |
"type": "number", |
| 47 |
"default": 8 |
| 48 |
}, |
| 49 |
"angle": { |
| 50 |
"type": "number", |
| 51 |
"default": 45 |
| 52 |
}, |
| 53 |
"fontSize": { |
| 54 |
"type": "number", |
| 55 |
"default": 72 |
| 56 |
}, |
| 57 |
"fontWeight": { |
| 58 |
"type": "string", |
| 59 |
"default": "900" |
| 60 |
}, |
| 61 |
"letterSpacing": { |
| 62 |
"type": "number", |
| 63 |
"default": 4 |
| 64 |
}, |
| 65 |
"textAlign": { |
| 66 |
"type": "string", |
| 67 |
"default": "center" |
| 68 |
}, |
| 69 |
"textTransform": { |
| 70 |
"type": "string", |
| 71 |
"default": "uppercase" |
| 72 |
}, |
| 73 |
"textColor": { |
| 74 |
"type": "string", |
| 75 |
"default": "#6366f1" |
| 76 |
}, |
| 77 |
"depthColor": { |
| 78 |
"type": "string", |
| 79 |
"default": "#312e81" |
| 80 |
}, |
| 81 |
"shadowColor": { |
| 82 |
"type": "string", |
| 83 |
"default": "rgba(0,0,0,0.25)" |
| 84 |
}, |
| 85 |
"backgroundColor": { |
| 86 |
"type": "string", |
| 87 |
"default": "#0f172a" |
| 88 |
}, |
| 89 |
"showBg": { |
| 90 |
"type": "boolean", |
| 91 |
"default": true |
| 92 |
}, |
| 93 |
"paddingV": { |
| 94 |
"type": "number", |
| 95 |
"default": 48 |
| 96 |
}, |
| 97 |
"paddingH": { |
| 98 |
"type": "number", |
| 99 |
"default": 32 |
| 100 |
}, |
| 101 |
"borderRadius": { |
| 102 |
"type": "number", |
| 103 |
"default": 0 |
| 104 |
}, |
| 105 |
"animation": { |
| 106 |
"type": "string", |
| 107 |
"default": "none" |
| 108 |
}, |
| 109 |
"hoverEffect": { |
| 110 |
"type": "string", |
| 111 |
"default": "tilt" |
| 112 |
}, |
| 113 |
"showReflection": { |
| 114 |
"type": "boolean", |
| 115 |
"default": false |
| 116 |
}, |
| 117 |
"lineHeight": { |
| 118 |
"type": "number", |
| 119 |
"default": 110 |
| 120 |
}, |
| 121 |
"textTypo": { |
| 122 |
"type": "object", |
| 123 |
"default": {} |
| 124 |
}, |
| 125 |
"gradientText": { |
| 126 |
"type": "boolean", |
| 127 |
"default": false |
| 128 |
}, |
| 129 |
"gradientFrom": { |
| 130 |
"type": "string", |
| 131 |
"default": "#a78bfa" |
| 132 |
}, |
| 133 |
"gradientTo": { |
| 134 |
"type": "string", |
| 135 |
"default": "#60a5fa" |
| 136 |
} |
| 137 |
} |
| 138 |
} |
| 139 |
|