PluginProbe
Counters Block – showcase your stats with animated numbers / 2.0.5
Counters Block – showcase your stats with animated numbers v2.0.5
2.0.8 2.0.7 trunk 1.0.0 1.0.1 1.0.2 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6
counters-block / build / block.json

block.json in Counters Block – showcase your stats with animated numbers 2.0.5, at build/block.json

312 lines 6.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "$schema": "https://schemas.wp.org/trunk/block.json",
3 "apiVersion": 2,
4 "name": "ctrb/counters",
5 "title": "Counters",
6 "version": "2.0.5",
7 "description": "Display Number as animated counter.",
8 "category": "widgets",
9 "keywords": [
10 "counter",
11 "number counter",
12 "at a glance"
13 ],
14 "textdomain": "counters-block",
15 "attributes": {
16 "align": {
17 "type": "string",
18 "default": "wide"
19 },
20 "counters": {
21 "type": "array",
22 "default": [
23 {
24 "background": {
25 "color": "#146EF5"
26 },
27 "icon": {
28 "class": "fa fa-puzzle-piece",
29 "fontSize": 50,
30 "color": "#fff"
31 },
32 "number": {
33 "start": 0,
34 "end": 30,
35 "stagger": 0,
36 "prefix": "",
37 "suffix": "+",
38 "color": "#fff"
39 },
40 "label": {
41 "text": "Products",
42 "color": "#fff"
43 }
44 },
45 {
46 "background": {
47 "color": "#146EF5"
48 },
49 "icon": {
50 "class": "fa fa-thumbs-up",
51 "fontSize": 50,
52 "color": "#fff"
53 },
54 "number": {
55 "start": 0,
56 "end": 380,
57 "stagger": 0,
58 "prefix": "",
59 "suffix": "K+",
60 "color": "#fff"
61 },
62 "label": {
63 "text": "Customers",
64 "color": "#fff"
65 }
66 },
67 {
68 "background": {
69 "color": "#146EF5"
70 },
71 "icon": {
72 "class": "fa fa-award",
73 "fontSize": 50,
74 "color": "#fff"
75 },
76 "number": {
77 "start": 0,
78 "end": 90,
79 "stagger": 0,
80 "prefix": "",
81 "suffix": "",
82 "color": "#fff"
83 },
84 "label": {
85 "text": "Awards",
86 "color": "#fff"
87 }
88 }
89 ]
90 },
91 "theme": {
92 "type": "string",
93 "default": "default"
94 },
95 "columns": {
96 "type": "object",
97 "default": {
98 "desktop": 3,
99 "tablet": 2,
100 "mobile": 1
101 }
102 },
103 "columnGap": {
104 "type": "string",
105 "default": "20px"
106 },
107 "rowGap": {
108 "type": "string",
109 "default": "30px"
110 },
111 "duration": {
112 "type": "number",
113 "default": 2000
114 },
115 "separator": {
116 "type": "object",
117 "default": {
118 "char": ""
119 }
120 },
121 "background": {
122 "type": "object",
123 "default": {
124 "color": "#0000"
125 }
126 },
127 "padding": {
128 "type": "object",
129 "default": {
130 "vertical": "20px",
131 "horizontal": "0px"
132 }
133 },
134 "textAlign": {
135 "type": "string",
136 "default": "center"
137 },
138 "counterWidth": {
139 "type": "string",
140 "default": "250px"
141 },
142 "counterHeight": {
143 "type": "string",
144 "default": "250px"
145 },
146 "isIcon": {
147 "type": "boolean",
148 "default": true
149 },
150 "iconSize": {
151 "type": "number",
152 "default": 50
153 },
154 "iconPosition": {
155 "type": "string",
156 "default": "top"
157 },
158 "numberTypo": {
159 "type": "object",
160 "default": {
161 "fontSize": {
162 "desktop": "48px",
163 "tablet": "40px",
164 "mobile": "32px"
165 }
166 }
167 },
168 "isLabel": {
169 "type": "boolean",
170 "default": true
171 },
172 "isSubLabel": {
173 "type": "boolean",
174 "default": false
175 },
176 "labelTypo": {
177 "type": "object",
178 "default": {
179 "fontSize": {
180 "desktop": "22px",
181 "tablet": "20px",
182 "mobile": "18px"
183 }
184 }
185 },
186 "subLabelTypo": {
187 "type": "object",
188 "default": {
189 "fontSize": {
190 "desktop": "14px",
191 "tablet": "12px",
192 "mobile": "12px"
193 }
194 }
195 },
196 "counterPadding": {
197 "type": "object",
198 "default": {
199 "vertical": "20px",
200 "horizontal": "20px"
201 }
202 },
203 "counterBorder": {
204 "type": "object",
205 "default": {
206 "radius": "50%"
207 }
208 },
209 "counterShadow": {
210 "type": "object",
211 "default": {}
212 },
213 "counterMultiShadow": {
214 "type": "array",
215 "default": [
216 {
217 "hOffset": "0px",
218 "vOffset": "4px",
219 "blur": "6px",
220 "spread": "-1px",
221 "color": "rgba(0, 0, 0, 0.1)",
222 "isInset": false
223 },
224 {
225 "hOffset": "0px",
226 "vOffset": "2px",
227 "blur": "4px",
228 "spread": "-2px",
229 "color": "rgba(0, 0, 0, 0.1)",
230 "isInset": false
231 }
232 ]
233 },
234 "counterHoverMultiShadow": {
235 "type": "array",
236 "default": [
237 {
238 "hOffset": "0px",
239 "vOffset": "10px",
240 "blur": "15px",
241 "spread": "-3px",
242 "color": "rgba(0, 0, 0, 0.1)",
243 "isInset": false
244 },
245 {
246 "hOffset": "0px",
247 "vOffset": "4px",
248 "blur": "6px",
249 "spread": "-4px",
250 "color": "rgba(0, 0, 0, 0.1)",
251 "isInset": false
252 }
253 ]
254 },
255 "numberBox": {
256 "type": "object",
257 "default": {}
258 },
259 "iconContainer": {
260 "type": "object",
261 "default": {
262 "dimensions": {
263 "height": "64px",
264 "width": "64px"
265 }
266 }
267 },
268 "circle": {
269 "type": "object",
270 "default": {
271 "radius": 70,
272 "stroke": 9
273 }
274 },
275 "proControls": {
276 "type": "object",
277 "default": {
278 "isReverse": false,
279 "decimals": 0,
280 "easing": "linear",
281 "delay": 0,
282 "repeatOnScroll": false,
283 "isAnimateIcon": false,
284 "animationType": "classic",
285 "rollingStaggerMode": "per-counter",
286 "trigger": "onVisible",
287 "customTriggerSelector": ""
288 }
289 }
290 },
291 "supports": {
292 "align": [
293 "wide",
294 "full"
295 ],
296 "html": false
297 },
298 "example": {
299 "attributes": {
300 "preview": true
301 }
302 },
303 "editorScript": [
304 "file:./index.js",
305 "wp-api",
306 "wp-util"
307 ],
308 "editorStyle": "file:./index.css",
309 "style": "file:./view.css",
310 "render": "file:./render.php",
311 "viewScript": "file:./view.js"
312 }