bramkragten / swipe-card

Card that allows you to swipe throught multiple cards for Home Assistant Lovelace
245 stars 36 forks source link

Request: Is possible to add auto slide and time for auto slide? #37

Open mohyat opened 3 years ago

mohyat commented 3 years ago

Hi,

Is possible to add auto slide and time for auto slide option?

thx

adapdoaosdaoda commented 2 years ago

add

type: custom:swipe-card
parameters:
  autoplay:
    delay: 5000

delay is in ms

more autoplay parameters can be found here: https://swiperjs.com/swiper-api#autoplay

MrFr33man123 commented 1 year ago

This does not work, when the delay is indent it won't accept it as valid yaml. I tried that first. Since I am no closer to a solution, here I am.

image

EDIT: For anyone beeing this stupid as me... there needs to be no "true" after autoplay, of course it is otherwise interpretet as key to value pair.

randonkade commented 10 months ago

THANK YOU :D