PluginProbe
bBlocks – Essential Gutenberg Blocks & Patterns Collection / trunk
bBlocks – Essential Gutenberg Blocks & Patterns Collection vtrunk
2.1.6 2.1.5 2.1.4 2.1.3 2.1.2 2.1.1 2.1.0 2.0.43 2.0.42 2.0.41 2.0.40 2.0.39 2.0.38 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 All 106 releases
b-blocks / build / counters / block.json

block.json in bBlocks – Essential Gutenberg Blocks & Patterns Collection trunk, at build/counters/block.json

214 lines 4.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "apiVersion": 3,
3 "name": "b-blocks/counters",
4 "title": "Counters",
5 "description": "Display Number as animated counter.",
6 "category": "bBlocks",
7 "keywords": [
8 "counter",
9 "number counter",
10 "at a glance"
11 ],
12 "textdomain": "b-blocks",
13 "attributes": {
14 "align": {
15 "type": "string",
16 "default": "wide"
17 },
18 "counters": {
19 "type": "array",
20 "default": [
21 {
22 "background": {
23 "color": "#146EF5"
24 },
25 "icon": {
26 "class": "fa fa-puzzle-piece",
27 "fontSize": 50,
28 "color": "#fff"
29 },
30 "number": {
31 "start": 0,
32 "end": 30,
33 "prefix": "",
34 "suffix": "+",
35 "color": "#fff"
36 },
37 "label": {
38 "text": "Products",
39 "color": "#fff"
40 }
41 },
42 {
43 "background": {
44 "color": "#146EF5"
45 },
46 "icon": {
47 "class": "fa fa-thumbs-up",
48 "fontSize": 50,
49 "color": "#fff"
50 },
51 "number": {
52 "start": 0,
53 "end": 380,
54 "prefix": "",
55 "suffix": "K+",
56 "color": "#fff"
57 },
58 "label": {
59 "text": "Customers",
60 "color": "#fff"
61 }
62 },
63 {
64 "background": {
65 "color": "#146EF5"
66 },
67 "icon": {
68 "class": "fa fa-award",
69 "fontSize": 50,
70 "color": "#fff"
71 },
72 "number": {
73 "start": 0,
74 "end": 90,
75 "prefix": "",
76 "suffix": "",
77 "color": "#fff"
78 },
79 "label": {
80 "text": "Awards",
81 "color": "#fff"
82 }
83 }
84 ]
85 },
86 "theme": {
87 "type": "string",
88 "default": "default"
89 },
90 "columns": {
91 "type": "object",
92 "default": {
93 "desktop": 3,
94 "tablet": 2,
95 "mobile": 1
96 }
97 },
98 "columnGap": {
99 "type": "string",
100 "default": "20px"
101 },
102 "rowGap": {
103 "type": "string",
104 "default": "30px"
105 },
106 "duration": {
107 "type": "number",
108 "default": 2000
109 },
110 "separator": {
111 "type": "object",
112 "default": {
113 "char": ""
114 }
115 },
116 "background": {
117 "type": "object",
118 "default": {
119 "color": "#0000"
120 }
121 },
122 "padding": {
123 "type": "object",
124 "default": {
125 "vertical": "20px",
126 "horizontal": "0px"
127 }
128 },
129 "textAlign": {
130 "type": "string",
131 "default": "center"
132 },
133 "counterWidth": {
134 "type": "string",
135 "default": "250px"
136 },
137 "counterHeight": {
138 "type": "string",
139 "default": "250px"
140 },
141 "isIcon": {
142 "type": "boolean",
143 "default": true
144 },
145 "iconSize": {
146 "type": "number",
147 "default": 50
148 },
149 "iconPosition": {
150 "type": "string",
151 "default": "top"
152 },
153 "numberTypo": {
154 "type": "object",
155 "default": {
156 "fontSize": {
157 "desktop": "48px",
158 "tablet": "40px",
159 "mobile": "32px"
160 }
161 }
162 },
163 "isLabel": {
164 "type": "boolean",
165 "default": true
166 },
167 "labelTypo": {
168 "type": "object",
169 "default": {
170 "fontSize": {
171 "desktop": "22px",
172 "tablet": "20px",
173 "mobile": "18px"
174 }
175 }
176 },
177 "counterPadding": {
178 "type": "object",
179 "default": {
180 "vertical": "20px",
181 "horizontal": "20px"
182 }
183 },
184 "counterBorder": {
185 "type": "object",
186 "default": {
187 "radius": "50%"
188 }
189 },
190 "counterShadow": {
191 "type": "object",
192 "default": {}
193 }
194 },
195 "supports": {
196 "align": [
197 "wide",
198 "full"
199 ],
200 "html": false
201 },
202 "example": {
203 "attributes": {
204 "preview": true
205 }
206 },
207 "editorScript": "file:../index.js",
208 "style": [
209 "file:./view.css",
210 "fontAwesome"
211 ],
212 "render": "file:./render.php",
213 "viewScript": "file:./view.js"
214 }