{ "name": "Slideshow", "class": "section--slideshow", "max_blocks": 5, "settings": [ { "type": "checkbox", "id": "autoplay", "label": "Auto-rotate slides", "default": false }, { "type": "radio", "id": "transition_style", "label": "Transition style", "options": [ { "value": "default", "label": "Slide" }, { "value": "fade", "label": "Fade" } ], "default": "default" }, { "label": "Rotate frequency (seconds)", "id": "rotate-frequency-range", "type": "range", "min": 3, "max": 15, "step": 1, "default": 7 } ], "blocks": [ { "type": "video", "name": "Video slide", "settings": [ { "type": "image_picker", "id": "image", "label": "Image", "info": "2000 x 1100px recommended" }, { "type": "video_url", "id": "slide-video", "label": "YouTube or Vimeo link", "accept": ["youtube", "vimeo"], "default": "https://www.youtube.com/watch?v=_9VUPq3SxOc" } ] }, { "type": "image", "name": "Slide", "settings": [ { "type": "image_picker", "id": "image", "label": "Image", "info": "2000 x 1100px recommended" }, { "type": "text", "id": "slide-title", "label": "Heading", "default": "Slideshow" }, { "type": "text", "id": "slide-tagline", "label": "Subheading", "default": "Introduce your store or campaign with this slideshow section." }, { "type": "url", "id": "slide-link-url", "label": "Link" }, { "type": "text", "id": "slide-link-title", "label": "Button label", "default": "Link to content" }, { "type": "header", "content": "Textbox position" }, { "type": "select", "id": "slide-y-pos", "label": "Vertical", "options": [ { "value": "top", "label": "Top" }, { "value": "middle", "label": "Middle" }, { "value": "bottom", "label": "Bottom" } ], "default": "middle" }, { "type": "select", "id": "slide-x-pos", "label": "Horizontal", "options": [ { "value": "left", "label": "Left" }, { "value": "center", "label": "Center" }, { "value": "right", "label": "Right" } ], "default": "left" }, { "type": "select", "id": "slide-text-pos", "label": "Text alignment", "options": [ { "value": "text-left", "label": "Text aligned left" }, { "value": "text-center", "label": "Text aligned center" } ], "default": "text-left" } ] } ], "presets": [{ "name": "Slideshow", "category": "Image", "settings": { "autoplay": true, "rotate-frequency-range": 7 }, "blocks": [ { "type": "image" }, { "type": "image" } ] }] }