# 🎞️ 1. How to Create an Auto-Play Slideshow

**URL:** https://community.glideapps.com/t/1-how-to-create-an-auto-play-slideshow/73271
**Category:** Community Resources
**Tags:** custom-css, tutorial, custom-code
**Created:** [May 11, 2024, 7:35am UTC](https://community.glideapps.com/t/1-how-to-create-an-auto-play-slideshow/73271 "2024-05-11T07:35:37Z")
**Posts on this page:** 20
**Page:** 3

<div class="post-metadata">

### Author: ![Sekayi\_Liburd](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sekayi_liburd/32/77608_2.png) [@Sekayi\_Liburd](https://community.glideapps.com/u/Sekayi_Liburd)
#### Post date: [May 12, 2024, 4:37am UTC](https://community.glideapps.com/t/1-how-to-create-an-auto-play-slideshow/73271/41 "2024-05-12T04:37:53Z")

</div>

> [@Himaladin](#):
>
> You can use it.

when I use it, I only see this. And with the transparent background, I can’t tell if the image is the full width.

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/2/b23304f0c5f7103bd3915abcdd5e5182cc6aac3e.jpeg)

---

<div class="post-metadata">

### Author: ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)
#### Post date: [May 12, 2024, 4:40am UTC](https://community.glideapps.com/t/1-how-to-create-an-auto-play-slideshow/73271/42 "2024-05-12T04:40:19Z")

</div>

Make sure the preview is turned on. It seems that none of the code is working for you.

---

<div class="post-metadata">

### Author: ![Sekayi\_Liburd](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sekayi_liburd/32/77608_2.png) [@Sekayi\_Liburd](https://community.glideapps.com/u/Sekayi_Liburd)
#### Post date: [May 12, 2024, 4:44am UTC](https://community.glideapps.com/t/1-how-to-create-an-auto-play-slideshow/73271/43 "2024-05-12T04:44:46Z")

</div>

I turned it on but nothing changed.

---

<div class="post-metadata">

### Author: ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)
#### Post date: [May 12, 2024, 4:47am UTC](https://community.glideapps.com/t/1-how-to-create-an-auto-play-slideshow/73271/44 "2024-05-12T04:47:39Z")

</div>

Can you provide a screenshot of what you’ve configured, including the Custom CSS?

Or change with this code:

```auto
/*Hide Navbar*/
#page-root:has(.slide-Show):has([class*="mobile-nav-bar"]) [data-testid="wire-container"] {
background-color: transparent !important;
padding-top: 0;
}
/*Container padding*/
#page-root:has(.slide-Show):has([class*="mobile-nav-bar"]) .slide-Show > div > div > div > div {
padding:0 !important;
width: 100%;
//margin-top: calc(30px - var(--safe-area-inset-top));
}
/*Hide Container background*/
.mobile-layer #main-root:has(.slide-Show) .slide-Show {
background: transparent !important;
}
.mobile-layer #main-root:has(.slide-Show) [data-testid="card-image"]{
height:300px;
}
.mobile-layer #main-root:has(.slide-Show) [data-testid="wire-component-stack-slide-Show"] > div > div > div, .mobile-layer #main-root:has(.slide-Show) [data-testid="card-image"] > div, .mobile-layer #main-root:has(.slide-Show) [data-testid="card-image"] img, #page-root:has(.slide-Show) [data-testid="cc-card"]{
border-radius:0;
padding:0px;
}

```

Note: This code update allows for a variety of styles that you can apply.

---

<div class="post-metadata">

### Author: ![Sekayi\_Liburd](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sekayi_liburd/32/77608_2.png) [@Sekayi\_Liburd](https://community.glideapps.com/u/Sekayi_Liburd)
#### Post date: [May 12, 2024, 4:56am UTC](https://community.glideapps.com/t/1-how-to-create-an-auto-play-slideshow/73271/45 "2024-05-12T04:56:47Z")

</div>

I replaced it with the new code but still no change.

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/f/5ffac38e0d530f45322306942a6822a46b32b7d2.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/9/69c49cc55a56fea6fa7d52fd6ced44f7d1e0ce1e.png)

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/1/b10b53230beae4b90588813bddde1abf142eed84.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/3/430b733d4306227c04ea64c6aa23125a749e56e3.png)

The css was clipped from your posts.

Question… is the div brackets ok in the code? It’s pointing the opposite direction from other codes that I’ve used.

---

<div class="post-metadata">

### Author: ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)
#### Post date: [May 12, 2024, 5:00am UTC](https://community.glideapps.com/t/1-how-to-create-an-auto-play-slideshow/73271/46 "2024-05-12T05:00:42Z")

</div>

You are setting the background of the container instead your collection component. 😄  
Leave the container in the “none” state or switch it to “accent.”

 ![Screenshot 2024-05-12 at 11.58.04](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/c/5c84b048bcb221c41be99a6f82ae7b4ece0635f7.png)

 ![Screenshot 2024-05-12 at 12.05.26](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/4/7448ab97af0192c2b670d1cd9aad917263c25f19.png)

---

<div class="post-metadata">

### Author: ![Sekayi\_Liburd](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sekayi_liburd/32/77608_2.png) [@Sekayi\_Liburd](https://community.glideapps.com/u/Sekayi_Liburd)
#### Post date: [May 12, 2024, 5:04am UTC](https://community.glideapps.com/t/1-how-to-create-an-auto-play-slideshow/73271/47 "2024-05-12T05:04:22Z")

</div>

still no luck. I will try changing the “\> div” to “\</_div_/\>”

… made no difference either. lol

---

<div class="post-metadata">

### Author: ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)
#### Post date: [May 12, 2024, 5:08am UTC](https://community.glideapps.com/t/1-how-to-create-an-auto-play-slideshow/73271/48 "2024-05-12T05:08:41Z")

</div>

There seems to be a bit of an issue. I’m concerned there might be conflicting CSS. Could you try clearing and copying your CSS to another location to test it?

---

<div class="post-metadata">

### Author: ![Sekayi\_Liburd](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sekayi_liburd/32/77608_2.png) [@Sekayi\_Liburd](https://community.glideapps.com/u/Sekayi_Liburd)
#### Post date: [May 12, 2024, 5:10am UTC](https://community.glideapps.com/t/1-how-to-create-an-auto-play-slideshow/73271/49 "2024-05-12T05:10:11Z")

</div>

we’re thinking alike now. I just tried that too. Nothing…

but I will try adding your first code again, with the CSS section clear.

… that didn’t work either. Could it be that your image just isn’t compatible with my location? Do you have another image we can try?

---

<div class="post-metadata">

### Author: ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)
#### Post date: [May 12, 2024, 5:15am UTC](https://community.glideapps.com/t/1-how-to-create-an-auto-play-slideshow/73271/50 "2024-05-12T05:15:03Z")

</div>

The CSS code I provided should work, at least there should be some changes. If in your CSS you use “/\*” and do not close it with “\*/” then all the code below it will not work.

---

<div class="post-metadata">

### Author: ![Sekayi\_Liburd](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sekayi_liburd/32/77608_2.png) [@Sekayi\_Liburd](https://community.glideapps.com/u/Sekayi_Liburd)
#### Post date: [May 12, 2024, 5:22am UTC](https://community.glideapps.com/t/1-how-to-create-an-auto-play-slideshow/73271/51 "2024-05-12T05:22:15Z")

</div>

I’m just using the same code that you supplied so I’m mystified.  
With a different image, I get this:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/3/53967e0c577be115965f4123953167b2e55d7892.jpeg)

Can you test the code with this to see if it works for you?

```auto
<img src="https://img.freepik.com/free-photo/abstract-colorful-splash-3d-background-generative-ai-background_60438-2509.jpg?w=1380&t=st=1715490970~exp=1715491570~hmac=f84c220ffc29e8e1e6d23af30582bf03b17688b27511d93b4977f30352eeaa79.png" alt="Description of the image" style="height: auto; width: 100%; display: block; margin: 0 auto;">

```

---

<div class="post-metadata">

### Author: ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)
#### Post date: [May 12, 2024, 5:27am UTC](https://community.glideapps.com/t/1-how-to-create-an-auto-play-slideshow/73271/52 "2024-05-12T05:27:06Z")

</div>

> [@Sekayi\_Liburd](#):
>
> ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/f/5ffac38e0d530f45322306942a6822a46b32b7d2.png)

It seems the issue is here. Why are you still using the title component?  
Using collection and richtext should be enough:

> [@Himaladin](#):
>
> ![Screenshot 2024-05-12 at 11.35.30](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/9/496ce8b031ee0dea7dc60c111700dbc27aeae602.png)

---

<div class="post-metadata">

### Author: ![Sekayi\_Liburd](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sekayi_liburd/32/77608_2.png) [@Sekayi\_Liburd](https://community.glideapps.com/u/Sekayi_Liburd)
#### Post date: [May 12, 2024, 5:30am UTC](https://community.glideapps.com/t/1-how-to-create-an-auto-play-slideshow/73271/53 "2024-05-12T05:30:59Z")

</div>

I just kept it there for reference. When I removed the other components, it didn’t solve the problem. But I can remove it again if you think I should.

---

<div class="post-metadata">

### Author: ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)
#### Post date: [May 12, 2024, 5:34am UTC](https://community.glideapps.com/t/1-how-to-create-an-auto-play-slideshow/73271/54 "2024-05-12T05:34:48Z")

</div>

My code is designed for the collection, not for the title component. Perhaps you remove it first, then after testing, you can put it back (turn off its visibility).

---

<div class="post-metadata">

### Author: ![Sekayi\_Liburd](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sekayi_liburd/32/77608_2.png) [@Sekayi\_Liburd](https://community.glideapps.com/u/Sekayi_Liburd)
#### Post date: [May 12, 2024, 5:42am UTC](https://community.glideapps.com/t/1-how-to-create-an-auto-play-slideshow/73271/55 "2024-05-12T05:42:37Z")

</div>

ok. So it needs to be a collection? maybe our wires got a little crossed then.  
Tell me which components you prepared the code for and I’ll set it up. Just those in the image there?

I thought we were doing everything through the rich text, that’s why i didn’t include a collection component.

---

<div class="post-metadata">

### Author: ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)
#### Post date: [May 12, 2024, 5:46am UTC](https://community.glideapps.com/t/1-how-to-create-an-auto-play-slideshow/73271/56 "2024-05-12T05:46:51Z")

</div>

This:

> [@Himaladin](#):
>
> ![Screenshot 2024-05-12 at 11.35.30](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/9/496ce8b031ee0dea7dc60c111700dbc27aeae602.png)

As you know, only collections and custom collections allow for clicking. However, the image component, if not inside a custom collection, will only navigate to the first row when clicked.  
Richtext is just to hold your logo.

---

<div class="post-metadata">

### Author: ![Sekayi\_Liburd](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sekayi_liburd/32/77608_2.png) [@Sekayi\_Liburd](https://community.glideapps.com/u/Sekayi_Liburd)
#### Post date: [May 12, 2024, 5:51am UTC](https://community.glideapps.com/t/1-how-to-create-an-auto-play-slideshow/73271/57 "2024-05-12T05:51:17Z")

</div>

oohhh. I understand your thought process now. Ok

I prepared it like in your diagram and copied the code and class but the main image still doesn’t reach to the edge. It’s ok though. Eventually, it will happen. 🤗  
For now, I’ll work with it as is.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/4/b447ee9ecea920196606febf43d3bfc24839616d.jpeg)

- It’s still really nice and it’s clickable so massive improvement!

---

<div class="post-metadata">

### Author: ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)
#### Post date: [May 12, 2024, 6:02am UTC](https://community.glideapps.com/t/1-how-to-create-an-auto-play-slideshow/73271/58 "2024-05-12T06:02:42Z")

</div>

Basic explanation:

1. If you are using a collection, this is a list-type component. Therefore, you just need to filter to display the corresponding row number based on the “Index to show” above.
2. If you are only using the image component, which is basically a single (non-list) component, then all images need to be collected in an array to be displayed according to the index from the “Index to show”. There is no filter option here. And only one action, which usually refers to the first row from clicking on any image that appears. The same goes for images within the title component options.

Show me which components you are using in the left panel. Why do I still see the search element above it?

---

<div class="post-metadata">

### Author: ![Sekayi\_Liburd](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sekayi_liburd/32/77608_2.png) [@Sekayi\_Liburd](https://community.glideapps.com/u/Sekayi_Liburd)
#### Post date: [May 12, 2024, 6:06am UTC](https://community.glideapps.com/t/1-how-to-create-an-auto-play-slideshow/73271/59 "2024-05-12T06:06:42Z")

</div>

lol, I didn’t customize the settings on the right side. I only rebuilt the left side with the components you listed and did the coding part.

This is the left:

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/8/38e52343a3cdc19aa48b17b663a8bac15354ece8.png)

---

<div class="post-metadata">

### Author: ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)
#### Post date: [May 12, 2024, 6:09am UTC](https://community.glideapps.com/t/1-how-to-create-an-auto-play-slideshow/73271/60 "2024-05-12T06:09:24Z")

</div>

Has it worked? After you turned off the search option.

[Previous page](https://community.glideapps.com/t/1-how-to-create-an-auto-play-slideshow/73271.md?page=2)

[Next page](https://community.glideapps.com/t/1-how-to-create-an-auto-play-slideshow/73271.md?page=4)
