Swap collection Scroll to item

Hi All

i am doing my first steps in if and i am struggling a bit :wink:

I am using a Swap collection which i want to control by my own buttons. I need next, prev and scroll to item. Prev and next are scrolling but scroll to index is a hard switch.

Is there a way how to get the scroll behavior if i need to move from lets say id 2 to id 7? Of course i don’t want the see 3,4,5,6 scrolling… just from 2 to 7 :wink:

Thanks and greetings

Christian

Hi Christian,

To be clear, you don’t want to see the scrolling animation when making the jump from index 2 to 7?

Hi, Is there a solution for this issue. I’m having the having the same problem where the swap collection on uses the transitions when using the built in experience nav. If you use the scroll to index trigger then it just snaps to the item index without the transition. I’ve cannot understand this behavior.

Any help would be appreciated

Hi @jason and welcome to the Community! :tada:

I confirm that using the “Scroll to an index” action of a Swap collection doesn’t show the animations, that’s a design choice to avoid displaying for instance 5 transitions when switching from index 1 to index 5.

But you can still have the transition when using the “Next” action!

The way to go, for instance if you want to move to index 3 while still showing every transition, is to ​add a Button to your scene and use these Trigger/Actions:

WHEN button is released AND index of Swap not equal to 3 (this is a Conditional Trigger)
THEN:

  • Next on Swap collection
  • 1sec after (to let time for transition animation) Simulate a tap on this current button itself

It will look like this

Kind regards,

Alex.

1 Like