# Swipe-card : configuration défilement

**URL:** <https://forum.hacf.fr/t/swipe-card-configuration-defilement/57505>\
**Category:** Entraide Home Assistant\
**Tags:** aide\
**Created:** [Février 5, 2025, 10:31 UTC](https://forum.hacf.fr/t/swipe-card-configuration-defilement/57505 "2025-02-05T10:31:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spl4sh](https://forum.hacf.fr/user_avatar/forum.hacf.fr/spl4sh/32/41499_2.png) [@Spl4sh](https://forum.hacf.fr/u/Spl4sh)\
**Post date:** [Février 5, 2025, 10:31 UTC](https://forum.hacf.fr/t/swipe-card-configuration-defilement/57505/1 "2025-02-05T10:31:07Z")

</div>

Bonjour à tous,

Je cherche le paramètre pour défiler le header de bouton en bouton. Actuellement ça passe de "page en page" (page = 5 boutons).  
Pouvez-vous m'aider svp ?

![Enregistrement de l’écran 2025-02-05 à 11.26.25](https://forum.hacf.fr/uploads/default/original/3X/5/6/563a15d24e6502c77bbab0b92355a845cf370c15.gif)

```auto
type: custom:swipe-card
cards:
  - type: horizontal-stack
    cards:
      - type: custom:mushroom-template-card
        primary: Cam
        secondary: ""
        icon: mdi:cctv
        icon_color: primary
        layout: vertical
        tap_action:
          action: navigate
          navigation_path: /dashboard-telephone/camera
        badge_icon: ""
        card_mod:
          style: |
            ha-card {
              background: none;
              border: none;
            }
      - type: custom:mushroom-template-card
        primary: Énergie
        secondary: ""
        icon: mdi:lightning-bolt
        icon_color: orange
        layout: vertical
        tap_action:
          action: navigate
          navigation_path: /dashboard-telephone/edf
        card_mod:
          style: |
            ha-card {
              background: none;
              border: none;
            }
      - type: custom:mushroom-template-card
        primary: Météo
        secondary: ""
        icon: mdi:clouds
        icon_color: green
        layout: vertical
        tap_action:
          action: navigate
          navigation_path: /dashboard-telephone/meteo
        card_mod:
          style: |
            ha-card {
              background: none;
              border: none;
            }
      - type: custom:mushroom-template-card
        primary: Labo
        secondary: ""
        icon: mdi:flask
        icon_color: purple
        layout: vertical
        tap_action:
          action: navigate
          navigation_path: /dashboard-telephone/labo
        card_mod:
          style: |
            ha-card {
              background: none;
              border: none;
            }
      - type: custom:mushroom-template-card
        primary: Net
        secondary: ""
        icon: mdi:network-outline
        icon_color: red
        layout: vertical
        tap_action:
          action: navigate
          navigation_path: /dashboard-telephone/reseau
        card_mod:
          style: |
            ha-card {
              background: none;
              border: none;
            }
  - type: horizontal-stack
    cards:
      - type: custom:mushroom-template-card
        primary: Awtrix
        secondary: ""
        icon: mdi:clock-digital
        icon_color: primary
        layout: vertical
        tap_action:
          action: navigate
          navigation_path: /dashboard-telephone/awtrix
        badge_icon: ""
        card_mod:
          style: |
            ha-card {
              background: none;
              border: none;
            }
      - type: custom:mushroom-template-card
        primary: Carbu
        secondary: ""
        icon: mdi:gas-station
        icon_color: orange
        layout: vertical
        tap_action:
          action: navigate
          navigation_path: /dashboard-telephone/carburants
        badge_icon: ""
        card_mod:
          style: |
            ha-card {
              background: none;
              border: none;
            }
      - type: custom:mushroom-template-card
        primary: Pollens
        secondary: ""
        icon: mdi:flower-pollen
        icon_color: green
        layout: vertical
        tap_action:
          action: navigate
          navigation_path: /dashboard-telephone/pollens
        badge_icon: ""
        card_mod:
          style: |
            ha-card {
              background: none;
              border: none;
            }
      - type: custom:button-card
        styles:
          card:
            - background: none
            - border: none
      - type: custom:button-card
        styles:
          card:
            - background: none
            - border: none

```

Merci d'avance pour votre aide !

---

<div class="post-metadata">

**Author:** ![Pulpy-Luke](https://forum.hacf.fr/user_avatar/forum.hacf.fr/pulpy-luke/32/137426_2.png) [@Pulpy-Luke](https://forum.hacf.fr/u/Pulpy-Luke)\
**Post date:** [Février 5, 2025, 10:53 UTC](https://forum.hacf.fr/t/swipe-card-configuration-defilement/57505/2 "2025-02-05T10:53:03Z")

</div>

Salut,

Regarde du coté de l'option slidesPerView: 1

> [@Swipe card : comment ne faire défiler qu'avec les boutons?](https://forum.hacf.fr/t/swipe-card-comment-ne-faire-defiler-quavec-les-boutons/7726):
>
> Hello, Dans une de mes vues j’affiche 5 thermostats (mes consignes) j’ai mis ça dans une swype card pour évider de prendre trop de place en pleine taille que l’on puisse quand même faire les modifications via l’écran tactile Techniquement ça marche, par contre il y a conflit entre la gestion du curseur du thermostat et la gestion du défilement : seule la carte bouge [swipe] Qu’un a une idée ? Restreindre le défilement uniquement avec les boutons latéraux, je voudrais dns l’idée garder l’u…

---

<div class="post-metadata">

**Author:** ![Spl4sh](https://forum.hacf.fr/user_avatar/forum.hacf.fr/spl4sh/32/41499_2.png) [@Spl4sh](https://forum.hacf.fr/u/Spl4sh)\
**Post date:** [Février 5, 2025, 11:00 UTC](https://forum.hacf.fr/t/swipe-card-configuration-defilement/57505/3 "2025-02-05T11:00:05Z")

</div>

> [@Pulpy-Luke](#):
>
> slidesPerView: 1

J'ai vu ton post également mais je n'ai pas trouvé la solution.  
Ce paramètre ne fonctionne pas :

```auto
type: custom:swipe-card
parameters:
  slidesPerView: 1

```

---

<div class="post-metadata">

**Author:** ![Pulpy-Luke](https://forum.hacf.fr/user_avatar/forum.hacf.fr/pulpy-luke/32/137426_2.png) [@Pulpy-Luke](https://forum.hacf.fr/u/Pulpy-Luke)\
**Post date:** [Février 5, 2025, 11:04 UTC](https://forum.hacf.fr/t/swipe-card-configuration-defilement/57505/4 "2025-02-05T11:04:34Z")

</div>

Essaye en virant la partie intermédiaire horizontal-stack

---

<div class="post-metadata">

**Author:** ![Spl4sh](https://forum.hacf.fr/user_avatar/forum.hacf.fr/spl4sh/32/41499_2.png) [@Spl4sh](https://forum.hacf.fr/u/Spl4sh)\
**Post date:** [Février 5, 2025, 11:12 UTC](https://forum.hacf.fr/t/swipe-card-configuration-defilement/57505/5 "2025-02-05T11:12:53Z")

</div>

C’est bon j’ai trouvé, en supprimant les horizontal-stack + slidesPerView: 5 !  
Merci.

```auto
type: custom:swipe-card
parameters:
  slidesPerView: 5
cards:
  - type: custom:mushroom-template-card
    primary: Cam
    secondary: ""
    icon: mdi:cctv
    icon_color: primary
    layout: vertical
    tap_action:
      action: navigate
      navigation_path: /dashboard-telephone/camera
    badge_icon: ""
    card_mod:
      style: |
        ha-card {
          background: none;
          border: none;
        }
  - type: custom:mushroom-template-card
    primary: Énergie
    secondary: ""
    icon: mdi:lightning-bolt
    icon_color: orange
    layout: vertical
    tap_action:
      action: navigate
      navigation_path: /dashboard-telephone/edf
    card_mod:
      style: |
        ha-card {
          background: none;
          border: none;
        }
  - type: custom:mushroom-template-card
    primary: Météo
    secondary: ""
    icon: mdi:clouds
    icon_color: green
    layout: vertical
    tap_action:
      action: navigate
      navigation_path: /dashboard-telephone/meteo
    card_mod:
      style: |
        ha-card {
          background: none;
          border: none;
        }
  - type: custom:mushroom-template-card
    primary: Labo
    secondary: ""
    icon: mdi:flask
    icon_color: purple
    layout: vertical
    tap_action:
      action: navigate
      navigation_path: /dashboard-telephone/labo
    card_mod:
      style: |
        ha-card {
          background: none;
          border: none;
        }
  - type: custom:mushroom-template-card
    primary: Net
    secondary: ""
    icon: mdi:network-outline
    icon_color: red
    layout: vertical
    tap_action:
      action: navigate
      navigation_path: /dashboard-telephone/reseau
    card_mod:
      style: |
        ha-card {
          background: none;
          border: none;
        }
  - type: custom:mushroom-template-card
    primary: Awtrix
    secondary: ""
    icon: mdi:clock-digital
    icon_color: primary
    layout: vertical
    tap_action:
      action: navigate
      navigation_path: /dashboard-telephone/awtrix
    badge_icon: ""
    card_mod:
      style: |
        ha-card {
          background: none;
          border: none;
        }
  - type: custom:mushroom-template-card
    primary: Carbu
    secondary: ""
    icon: mdi:gas-station
    icon_color: orange
    layout: vertical
    tap_action:
      action: navigate
      navigation_path: /dashboard-telephone/carburants
    badge_icon: ""
    card_mod:
      style: |
        ha-card {
          background: none;
          border: none;
        }
  - type: custom:mushroom-template-card
    primary: Pollens
    secondary: ""
    icon: mdi:flower-pollen
    icon_color: green
    layout: vertical
    tap_action:
      action: navigate
      navigation_path: /dashboard-telephone/pollens
    badge_icon: ""
    card_mod:
      style: |
        ha-card {
          background: none;
          border: none;
        }
  - type: custom:button-card
    styles:
      card:
        - background: none
        - border: none
  - type: custom:button-card
    styles:
      card:
        - background: none
        - border: none

```
