{ "name": "Slideshow", "class": "index-section index-section--flush", "max_blocks": 4, "settings": [ { "type": "checkbox", "id": "autoplay", "label": "Auto-rotate slides", "default": true }, { "type": "select", "id": "autoplay_speed", "label": "Change slides every", "options": [ { "value": "5000", "label": "5 seconds" }, { "value": "6000", "label": "6 seconds" }, { "value": "7000", "label": "7 seconds" }, { "value": "8000", "label": "8 seconds" }, { "value": "9000", "label": "9 seconds" }, { "value": "10000", "label": "10 seconds" } ], "default": "7000" }, { "type": "select", "id": "slideshow_height", "label": "Section height", "default": "small", "options": [ { "label": "Small", "value": "small" }, { "label": "Medium", "value": "medium" }, { "label": "Large", "value": "large" } ] }, { "type": "select", "id": "text_size", "label": "Text size", "default": "medium", "options": [ { "label": "Medium", "value": "medium" }, { "label": "Large", "value": "large" } ] } ], "blocks": [ { "type": "image", "name": "Image slide", "settings": [ { "type": "image_picker", "id": "image", "label": "Image" }, { "type": "select", "id": "alignment", "label": "Image alignment", "default": "top", "options": [ { "value": "top", "label": "Top" }, { "value": "center", "label": "Middle" }, { "value": "bottom", "label": "Bottom" } ] }, { "type": "text", "id": "title", "label": "Heading", "default": "Image slide" }, { "type": "text", "id": "subheading", "label": "Subheading", "default": "Tell your brand's story through video and images" }, { "type": "url", "id": "link", "label": "Slide link" } ] }, { "type": "video", "name": "Video slide", "settings": [ { "type": "video_url", "id": "video_url", "label": "Video link", "accept": ["youtube"], "default": "https:\/\/www.youtube.com\/watch?v=_9VUPq3SxOc" }, { "type": "select", "id": "video_type", "label": "Style", "options": [ { "value": "chrome", "label": "Image with play button" }, { "value": "background-chrome", "label": "Background video with play button" }, { "value": "background", "label": "Background video" } ] }, { "type": "image_picker", "id": "image", "label": "Image", "info": "Fallback when autoplaying video is not supported on mobile devices" }, { "type": "text", "id": "title", "label": "Heading", "default": "Video slide" }, { "type": "text", "id": "subheading", "label": "Subheading", "default": "Tell your brand's story through video and images" } ] } ], "presets": [{ "name": "Slideshow", "category": "Image", "settings": { "autoplay": true, "autoplay_speed": "5000" }, "blocks": [ { "type": "image" }, { "type": "image" } ] }] }