| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "ghostkit/carousel", |
| 5 |
"category": "ghostkit", |
| 6 |
"title": "Carousel", |
| 7 |
"description": "Carousel for any type of content - images or other blocks.", |
| 8 |
"keywords": ["carousel", "slider"], |
| 9 |
"supports": { |
| 10 |
"html": false, |
| 11 |
"className": false, |
| 12 |
"anchor": true, |
| 13 |
"align": ["wide", "full"] |
| 14 |
}, |
| 15 |
"attributes": { |
| 16 |
"effect": { |
| 17 |
"type": "string", |
| 18 |
"default": "slide" |
| 19 |
}, |
| 20 |
"speed": { |
| 21 |
"type": "number", |
| 22 |
"default": 0.2 |
| 23 |
}, |
| 24 |
"autoplay": { |
| 25 |
"type": "number", |
| 26 |
"default": 4 |
| 27 |
}, |
| 28 |
"autoplayHoverPause": { |
| 29 |
"type": "boolean", |
| 30 |
"default": false |
| 31 |
}, |
| 32 |
"slidesPerView": { |
| 33 |
"type": "number", |
| 34 |
"default": 3 |
| 35 |
}, |
| 36 |
"centeredSlides": { |
| 37 |
"type": "boolean", |
| 38 |
"default": true |
| 39 |
}, |
| 40 |
"loop": { |
| 41 |
"type": "boolean", |
| 42 |
"default": true |
| 43 |
}, |
| 44 |
"freeScroll": { |
| 45 |
"type": "boolean", |
| 46 |
"default": false |
| 47 |
}, |
| 48 |
"fadeEdges": { |
| 49 |
"type": "boolean", |
| 50 |
"default": false |
| 51 |
}, |
| 52 |
"fadeEdgesSize": { |
| 53 |
"type": "number", |
| 54 |
"default": 12 |
| 55 |
}, |
| 56 |
"showArrows": { |
| 57 |
"type": "boolean", |
| 58 |
"default": true |
| 59 |
}, |
| 60 |
"arrowPrevIcon": { |
| 61 |
"type": "string", |
| 62 |
"default": "%3Csvg%20class%3D%22ghostkit-svg-icon%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M14.7803%2017.7803C14.4874%2018.0732%2014.0126%2018.0732%2013.7197%2017.7803L8.4697%2012.5303C8.1768%2012.2374%208.1768%2011.7626%208.4697%2011.4697L13.7197%206.21967C14.0126%205.92678%2014.4874%205.92678%2014.7803%206.21967C15.0732%206.51256%2015.0732%206.98744%2014.7803%207.28033L10.0607%2012L14.7803%2016.7197C15.0732%2017.0126%2015.0732%2017.4874%2014.7803%2017.7803Z%22%20fill%3D%22currentColor%22%2F%3E%3C%2Fsvg%3E" |
| 63 |
}, |
| 64 |
"arrowNextIcon": { |
| 65 |
"type": "string", |
| 66 |
"default": "%3Csvg%20class%3D%22ghostkit-svg-icon%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M9.21967%206.2197C9.51256%205.9268%209.98744%205.9268%2010.2803%206.2197L15.5303%2011.4697C15.8232%2011.7626%2015.8232%2012.2374%2015.5303%2012.5303L10.2803%2017.7803C9.98744%2018.0732%209.51256%2018.0732%209.21967%2017.7803C8.92678%2017.4874%208.92678%2017.0126%209.21967%2016.7197L13.9393%2012L9.21967%207.2803C8.92678%206.9874%208.92678%206.5126%209.21967%206.2197Z%22%20fill%3D%22currentColor%22%2F%3E%3C%2Fsvg%3E" |
| 67 |
}, |
| 68 |
"showBullets": { |
| 69 |
"type": "boolean", |
| 70 |
"default": true |
| 71 |
}, |
| 72 |
"dynamicBullets": { |
| 73 |
"type": "boolean", |
| 74 |
"default": true |
| 75 |
}, |
| 76 |
"gap": { |
| 77 |
"type": "number", |
| 78 |
"default": 15 |
| 79 |
} |
| 80 |
} |
| 81 |
} |
| 82 |
|