{%- style -%}
:root {
--color-swiper-button: {{ settings.swiper_button_color }};
--bg-scrollbar-color: {{ settings.scrollbar_color }};
--color-scrollbar-drag: {{ settings.scrollbar_drag_color }};
}
.item-container {
box-shadow: 0 0 5px 0 #dee2e6;
margin: 10px;
border-radius: 10px;
}
.view-v video {
width: 100%;
height: 350px;
object-fit: cover;
}
.swiper-button-next, .swiper-button-prev {
color: var(--color-swiper-button) !important;
}
.swiper-scrollbar {
background: var(--bg-scrollbar-color) !important;
}
.swiper-scrollbar-drag {
display: block !important;
background: var(--color-scrollbar-drag) !important;
}
.scrollable-with-controls {
gap: 1.5rem;
}
@media screen and (min-width: 480px) {
}
{%- endstyle -%}
{% schema %}
{
"name": "Reelsproductsshow",
"tag": "section",
"class": "carousel",
"settings": [
{
"type": "number",
"id": "max_cards",
"label": "Maximum Cards",
"default": 6
},
{
"type": "color",
"id": "swiper_button_color",
"label": "Swiper Button Color",
"default": "#c5c5c5"
},
{
"type": "color",
"id": "scrollbar_color",
"label": "Scrollbar Color",
"default": "#000"
},
{
"type": "color",
"id": "scrollbar_drag_color",
"label": "Scrollbar Drag Color",
"default": "#fff"
}
],
"blocks": [
{
"name": "Card",
"type": "card",
"settings": [
{
"type": "product",
"id": "product",
"label": "Product"
},
{
"type": "video",
"id": "video",
"label": "Video"
}
]
}
],
"presets": [
{
"name": "Reelsproducts1",
"blocks": [
{
"type": "card"
},
{
"type": "card"
},
{
"type": "card"
},
{
"type": "card"
},
{
"type": "card"
},
{
"type": "card"
}
]
}
],
"locales": {
"en": {
"title": "Carousel"
}
},
"enabled_on": {
"templates": ["*"],
"groups": ["footer"]
}
}
{% endschema %}
But Front-end Load Empty
<style data-shopify="">
:root {
--color-swiper-button: ;
--bg-scrollbar-color: ;
--color-scrollbar-drag: ;
}
.item-container {
box-shadow: 0 0 5px 0 #dee2e6;
margin: 10px;
border-radius: 10px;
}
.view-v video {
width: 100%;
height: 350px;
object-fit: cover;
}
.swiper-button-next, .swiper-button-prev {
color: var(--color-swiper-button) !important;
}
.swiper-scrollbar {
background: var(--bg-scrollbar-color) !important;
}
.swiper-scrollbar-drag {
display: block !important;
background: var(--color-scrollbar-drag) !important;
}
.scrollable-with-controls {
gap: 1.5rem;
}
@media screen and (min-width: 480px) {
}</style>
Why is