Solved
Auto Scrolling image Gallery
Hi All,
I have a requirement that to display gallery of images that needs to be automatically scrolled .
Is there any possibilities for this requirement?

Hi All,
I have a requirement that to display gallery of images that needs to be automatically scrolled .
Is there any possibilities for this requirement?

@stewart:took some brain cells but is working more or less.
a!localVariables(
local!timestamp:now(),
local!timedifferenceInSecond: a!refreshVariable(
value: sum(second(now()-local!timestamp),minute(now()-local!timestamp)*60),
refreshInterval: 0.5
),
local!timedifferenceFactor:a!refreshVariable(
value: round(local!timedifferenceInSecond/30,0),
refreshInterval: 0.5
),
local!pictures:{
cons!SR_CARD3_223425722,
cons!SR_FREE_BLEEDING_CC0_PIXABAY_MYRIAMS_FOTOS_191216
},
local!indexInterval:a!refreshVariable(
value: mod(local!timedifferenceFactor,count(local!pictures)),
refreshInterval: 0.5
),
local!index: 1+local!indexInterval,
local!seletedPicture:index(local!pictures,local!index,cons!SR_CARD3_223425722),
{
a!columnsLayout(
columns: {
a!columnLayout(
contents: {
a!imageField(
labelPosition: "COLLAPSED",
images: {
a!documentImage(
document:cons!SR_LEFT,
link: a!dynamicLink(
saveinto: {
a!save(
target: local!index,
value: local!index-1,
)
},
showWhen: local!index>1
)
),
},
size: "LARGE",
isThumbnail: false,
style: "STANDARD"
)
}
),
a!columnLayout(
contents: {
a!imageField(
labelPosition: "COLLAPSED",
images: a!documentImage(
document: local!seletedPicture
),
size: "LARGE",
isThumbnail: false,
style: "STANDARD"
)
}
),
a!columnLayout(
contents: {
a!imageField(
labelPosition: "COLLAPSED",
images: a!documentImage(
document:cons!SR_RIGHT,
link: a!dynamicLink(
saveinto: {
a!save(
target: local!index,
value: local!index+1,
)
},
showWhen: local!indexEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.