Hi, I want to make the recommended products section of my home page (https://cuisinart.com.co/) auto scroll on mobile
This is the section code:
{%- if section.settings.background != settings.background and section.settings.background != ‘rgba(0,0,0,0)’ -%}
{%- assign blends_with_background = false -%}
{%- else -%}
{%- assign blends_with_background = true -%}
{%- endif -%}
{{ section.settings.subheading }}
{%- endif -%}{%- if section.settings.title != blank -%}
{{ section.settings.title }}
{%- endif -%}{%- if section.settings.content != blank -%}
{{- section.settings.content -}}
{%- endif -%}
{%- if section.blocks.size > 1 -%}
<button type=“button” class=“tabs-nav__item heading heading–small” aria-expanded=“{% if forloop.first %}true{% else %}false{% endif %}” aria-controls=“block-{{ section.id }}-{{ block.id }}” {{ block.shopify_attributes }}>
{{- block.settings.label | default: block.settings.collection.title | default: on_boarding_title -}}
{%- endfor -%}
<product-list {% if settings.stagger_products_apparition %}stagger-apparition{% endif %} {% unless forloop.first %}hidden{% endunless %} id=“block-{{ section.id }}-{{ block.id }}” class=“product-list product-list–center”>
{%- for product in collection.products limit: section.settings.products_count -%}
{%- if product.featured_media -%}
{%- assign smallest_image_aspect_ratio = smallest_image_aspect_ratio | at_least: product.featured_media.aspect_ratio -%}
{%- endif -%}
{%- render ‘product-item’, product: product, collection: collection, show_cta: section.settings.show_cta, block: block, sizes_attribute: sizes_attribute, reveal: settings.stagger_products_apparition -%}
{%- else -%}
{%- assign smallest_image_aspect_ratio = 1 -%}
{%- for i in (1..section.settings.products_count) -%}
{%- capture product_image -%}product-{% cycle ‘1’, ‘2’, ‘3’, ‘4’, ‘5’ %}{% endcapture %}
{%- render ‘product-item-placeholder’, product_image: product_image, show_cta: section.settings.show_cta, reveal: settings.stagger_products_apparition -%}
{%- endfor -%}
{%- endfor -%}
{%- unless section.settings.stack_products -%}
{%- if collection.products_count == 0 -%}
{%- assign products_shown = section.settings.products_count -%}
{%- else -%}
{%- assign products_shown = collection.products_count | default: section.settings.products_count | at_most: section.settings.products_count -%}
{%- endif -%}
{%- if products_shown > section.settings.products_per_row -%}
{%- if smallest_image_aspect_ratio == 0 -%}
{%- assign smallest_image_aspect_ratio = 1 -%}
{%- endif -%}
{%- if block.settings.button_text != blank -%}
{%- endif -%} {%- endfor -%}{% schema %}
{
“name”: “Featured collections”,
“class”: “shopify-section–featured-collections”,
“max_blocks”: 5,
“blocks”: [
{
“type”: “collection”,
“name”: “Collection”,
“settings”: [
{
“type”: “collection”,
“id”: “collection”,
“label”: “Collection”
},
{
“type”: “text”,
“id”: “label”,
“label”: “Tab label”,
“info”: “Shown when more than 1 collection is featured. Collection title is used if none is set.”
},
{
“type”: “text”,
“id”: “button_text”,
“label”: “Button text”
},
{
“type”: “url”,
“id”: “button_url”,
“label”: “Button link”,
“info”: “If empty, the collection URL is used.”
}
]
}
],
“settings”: [
{
“type”: “text”,
“id”: “subheading”,
“label”: “Subheading”,
“default”: “Your title”
},
{
“type”: “text”,
“id”: “title”,
“label”: “Heading”,
“default”: “Collection”
},
{
“type”: “richtext”,
“id”: “content”,
“label”: “Content”
},
{
“type”: “range”,
“id”: “products_count”,
“label”: “Products to show”,
“min”: 4,
“max”: 50,
“step”: 1,
“default”: 8
},
{
“type”: “range”,
“id”: “products_per_row”,
“label”: “Products per row (desktop)”,
“min”: 2,
“max”: 6,
“step”: 1,
“default”: 4
},
{
“type”: “checkbox”,
“id”: “stack_products”,
“label”: “Stack products”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “show_cta”,
“label”: “Show add to cart below info”,
“info”: “If enabled, we recommend using 4 products per row at maximum.”,
“default”: false
},
{
“type”: “header”,
“content”: “Colors”
},
{
“type”: “color”,
“id”: “background”,
“label”: “Background”,
“default”: “rgba(0,0,0,0)”
},
{
“type”: “color”,
“id”: “text_color”,
“label”: “Text”,
“default”: “rgba(0,0,0,0)”
},
{
“type”: “color”,
“id”: “button_background”,
“label”: “Button background”,
“default”: “rgba(0,0,0,0)”
},
{
“type”: “color”,
“id”: “button_text_color”,
“label”: “Button text”,
“default”: “rgba(0,0,0,0)”
}
],
“presets”: [
{
“name”: “Featured collections”,
“blocks”: [
{
“type”: “collection”
}
],
“settings”: {}
}
]
}
{% endschema %}