# Automatic scrolling images in an inline list

**URL:** <https://community.glideapps.com/t/automatic-scrolling-images-in-an-inline-list/48076>\
**Category:** Ask for Help\
**Created:** [August 29, 2022, 7:38pm UTC](https://community.glideapps.com/t/automatic-scrolling-images-in-an-inline-list/48076 "2022-08-29T19:38:01Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [August 31, 2022, 1:41am UTC](https://community.glideapps.com/t/automatic-scrolling-images-in-an-inline-list/48076/12 "2022-08-31T01:41:00Z")

</div>

> [@SimonD](#):
>
> like the idea of having the images change by elapsed time or new logins, It would only involve a maximum of 20 images. Any further information about how to do this is much appreciated.

Okay, so the way I would approach this is as follows:

- Start by creating an array of images. If you’re currently using them in an Inline List, then I assume you have all your images in a single column. If that’s the case, you can create an array by using a [lookup](https://www.glideapps.com/docs/reference/computed-columns/lookup-column) column and addressing your image column directly.
- Next, add a [Roll Dice](https://www.glideapps.com/plugins/dice) column. Use the current date/time as a seed value, and the number of sides should be one less than your number of images. This will give you a random number between 1 and _N_ (where _N_ is your number of images), that changes every 10 seconds.
- Next, you need a Math column that adds 1 to the result of the Roll Dice column.
- Finally, you can use an [Array Slice](https://www.glideapps.com/plugins/slice-array) column to extract a random image from the array. The start position will be the result of the dice roll, and then end position will be the result of the math column.

Then all you need to do is add an image component to your screen, and target it at the array slice column. You should see a random image from your set, that changes every 10 seconds.

---

_[View the full topic](https://community.glideapps.com/t/automatic-scrolling-images-in-an-inline-list/48076)._
