Swipe Gallery infinite loop

3,061 views
Skip to first unread message

rebecc...@gmail.com

unread,
Mar 3, 2015, 11:53:41 PM3/3/15
to gwd...@googlegroups.com
Is it possible to make the swipe gallery keep scrolling through automatically on it's own?

Jeremy Banks

unread,
Mar 5, 2015, 1:22:09 PM3/5/15
to gwd...@googlegroups.com
Hello,

There isn't a option that does this directly. Whenever autoplay is activated, it will go through the frames exactly once and then stop.

It is possible to use our event system to loop the gallery forever, but this makes the autoplay impossible to ever stop. (Normally, when the user swipes to a different frame during an autoplay, the autoplay will be cancelled, but not if you do this.) If this is still useful in your case, this is how it can be done:
  1. Add a gallery component to your document, and add images.
  2. Press the [+] button in the Events panel to define a new event handler.
  3. Select event target: your gallery
  4. Select event type: gallery -> frame shown
  5. Select action: gallery -> rotate once
  6. Select receiver: your gallery
  7. Enter the desired rotation duration.
  8. Save

This simply starts the autoplay every time a new frame is shown, so that it can never stop.



Thanks for expressing your interest in this feature. Other users have also requested a built-in option to autoplay forever, while still allowing the user to interrupt it. We'll consider it for inclusion in a future release.

Cheers,
Jeremy Banks
GWD Software Engineer



Ma...@rallyproduction.com

unread,
Sep 17, 2015, 7:52:21 AM9/17/15
to Google Web Designer beta
the photos inside swipable gallery can be clickable to jump page?

pooni....@gmail.com

unread,
Sep 19, 2016, 12:24:53 PM9/19/16
to Google Web Designer beta
hello,

Is it possible to swipe the gallery continuously, after the feed gets complete ? The template that i m using from GWD, it comes to the first element, when there is no feed and stops. but i want it to rotate all the time, when feeds gets over and again first and so on

Thanks

pooni....@gmail.com

unread,
Sep 19, 2016, 12:29:05 PM9/19/16
to Google Web Designer beta
test.zip

San Khong

unread,
Feb 16, 2017, 6:02:24 PM2/16/17
to Google Web Designer beta
You can have infinite loop by enabling autoplay, then add an autoplay ended event to rotate once and adjusting rotation times and autoplay duration in advanced settings to have a smooth looping

San
Google Web Designer team
Reply all
Reply to author
Forward
0 new messages