Skip to main content
Participant
July 4, 2020
Answered

How to create gallery which changes images randomly on every click

  • July 4, 2020
  • 3 replies
  • 1040 views

is there a way to create a button that shows images in a randomized order? thanks!

This topic has been closed for replies.
Correct answer Spas K.

Apart from what Atul said, you can't really make it "random", as all interactions have a trigger and a specific destination. You can make a 10 state component or something to swap the images, but they will always change in the same order.

3 replies

Spas K.
Community Expert
Spas K.Community ExpertCorrect answer
Community Expert
July 8, 2020

Apart from what Atul said, you can't really make it "random", as all interactions have a trigger and a specific destination. You can make a 10 state component or something to swap the images, but they will always change in the same order.

Atul_Saini
Legend
July 8, 2020

Thanks for your inputs, Dstoic. You're absolutely correct, we can only imitate the randomize images, however, there definitively will be a set patter which you would set while prototyping.  

Atul_Saini
Legend
July 7, 2020

Hi Pascalgb, 

 

Thanks for reaching out, let see how close we can get to your desired output here. I can think of two ways from which you may achieve this output. One is using components states (add different images to each state) another is by duplicating artboards (putting the different images in each artboard).

 

Please try this and let us know if this helps. If you need further assistance, please share a small clip of your inspiration so that we may check what exactly you're looking for and help you accordingly. 

 

Thanks,

Atul_Saini