PluginProbe
Block Animations, Motion & Scroll Effects – Ghost Kit / 3.3.3
Block Animations, Motion & Scroll Effects – Ghost Kit v3.3.3
3.7.2 3.7.1 3.7.0 3.6.1 trunk 1.6.3 2.25.0 3.3.0 3.3.1 3.3.2 3.3.3 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.5.0 3.5.1 3.6.0
ghostkit / gutenberg / blocks / image-compare / block.json

block.json in Block Animations, Motion & Scroll Effects – Ghost Kit 3.3.3, at gutenberg/blocks/image-compare/block.json

117 lines 2.4 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": 3,
4 "name": "ghostkit/image-compare",
5 "category": "ghostkit",
6 "title": "Image Compare",
7 "description": "Compare two images with a slider.",
8 "keywords": ["image", "compare", "before", "after"],
9 "supports": {
10 "html": false,
11 "className": false,
12 "anchor": true,
13 "align": ["wide", "full"]
14 },
15 "attributes": {
16 "align": {
17 "type": "string"
18 },
19 "position": {
20 "type": "number",
21 "default": 50
22 },
23 "direction": {
24 "type": "string"
25 },
26 "trigger": {
27 "type": "string"
28 },
29
30 "beforeId": {
31 "type": "number"
32 },
33 "beforeUrl": {
34 "attribute": "src",
35 "selector": ".ghostkit-image-compare-image-before img",
36 "source": "attribute",
37 "type": "string"
38 },
39 "beforeAlt": {
40 "attribute": "alt",
41 "selector": ".ghostkit-image-compare-image-before img",
42 "source": "attribute",
43 "type": "string",
44 "default": ""
45 },
46 "beforeWidth": {
47 "type": "number"
48 },
49 "beforeHeight": {
50 "type": "number"
51 },
52 "beforeSizeSlug": {
53 "type": "string"
54 },
55
56 "afterId": {
57 "type": "number"
58 },
59 "afterUrl": {
60 "attribute": "src",
61 "selector": ".ghostkit-image-compare-image-after img",
62 "source": "attribute",
63 "type": "string"
64 },
65 "afterAlt": {
66 "attribute": "alt",
67 "selector": ".ghostkit-image-compare-image-after img",
68 "source": "attribute",
69 "type": "string",
70 "default": ""
71 },
72 "afterWidth": {
73 "type": "number"
74 },
75 "afterHeight": {
76 "type": "number"
77 },
78 "afterSizeSlug": {
79 "type": "string"
80 },
81
82 "showLabels": {
83 "type": "boolean",
84 "default": false
85 },
86 "labelBeforeText": {
87 "type": "string",
88 "source": "html",
89 "selector": ".ghostkit-image-compare-image-before-label",
90 "default": "Before"
91 },
92 "labelAfterText": {
93 "type": "string",
94 "source": "html",
95 "selector": ".ghostkit-image-compare-image-after-label",
96 "default": "After"
97 },
98 "labelAlign": {
99 "type": "string",
100 "default": "end"
101 },
102
103 "colorDivider": {
104 "type": "string"
105 },
106 "colorDividerIcon": {
107 "type": "string"
108 },
109
110 "caption": {
111 "type": "string",
112 "source": "html",
113 "selector": "figcaption"
114 }
115 }
116 }
117