How does the picture carousel realize the interactive effect of connecting the beginning and the end?
e.g:Slide the first picture to the right to scroll to the last picture. Swipe the last picture to the left to scroll to the first picture.
Hello, thank you for your reply. I donât know if you have watched my video carefully. My operation is an interaction, it can not only loop forward, but also loop backward. This is a technique that I donât know how to do.
It will be displayed like your video by default. You can also use gestures (swipe) to interact and switch the display content.
The principle of creating an infinite slider is exactly the same. Just use âOn dragâ trigger instead of âAfter delayâ.
If you still donât understand how to do this, then you can see my file:
fantastic. Thank you. Learn from you
I made this last week, published it to the community, youâll thank me later, hahaha, and make sure to leave a like
sorry for the late reply. Because I just saw your message. Thank you, your method is very good, I am learning. thanks again.
Hello everyone!
Iâve been bugged with this issue to create an endless image loop either vertically or horizontally but canât think of a way around it. Below is a sample of what I want to achieve as this is for a client project pending prototype.
Thank you for your assistance!
Thank you for your interactive component. I am very new at this and have spent the last 4 days trying to figure it out. I got this far and canât figure out what to do next. I wanted foe the purpose of using it for a project, that you can see to the side. I donât want the images touching but with a small space in-between. I also want only 3-4 images. I have not figured out where to make the change. I also canât figure out how to get the item to go back to the beginning.
https://www.figma.com/file/Zo5NVLp7CpNMTszsKCT4X2/Infinite-Carousel-me?node-id=0%3A1
itâs a great help your file but would have been even better for us complete novices, with some written text of the process steps to create, ie what you did/created first , second and so on. Thanks
Wow. Thank you so much. After I finish this course I am taking I want to really dive deeply into interactive components and variants.
One thing I see as a problem with variants is once you make the components into the variants you canât go back to just the components. Therefore if you want to learn from an already created file itâs a lot of guessing what to change first. I really appreciate your video.
Another question I have. If I wanted to make the add and detail buttons work, link to those frames would they work? Or no because itâs like a component embedded in another component? Thanks
Cool.
I learned a lot from the video. Here is what I did. I have a couple of questions. I thought that the ones that are blue in your file are the first and the last image. When you check my file it does not work as infinite because of the gray ones. What I want to know is 1)how to make it less images or more images, from which part do they get added or removed? Also what do I actually use (copy into) in my file. Thanks again s much.
https://www.figma.com/file/wKY3ugI3PX2p012EgSEgtp/Infinite-Carousel-mine?node-id=0%3A1
https://www.figma.com/file/BHrXl9UournLo7Bgksht2W/Valentinos-menu-app-WF-Updated?node-id=328%3A441
To adjust the number of items displayed:
Find â Infinite Carousel (under the How To Use section)
There you will see a property named: â# of itemsâ
The first and last images are only there to give the infinite impression upon reaching either end of the deck, without them the user will hit the âwallâ when scrolling past the end. Therefore, the first and last images are duplicates of your actual content, notice I have numbers originally marked on these cards to tell apart which one is which, follow the numbers and youâll get the desired result
Now, with regards to the inner implementation of such an interactive infinite carousel, I must say, they are super-advanced and may scare a lot of newcomers away, but if you press âY (ctrl Y on Windows)
you will see that 95% of components used are hidden outside of the visible container, visually they are divided into 3 columns, these columns (from left to right) are for the 4 items (default), 3 items, and 5 items respectively. If you want to add for example 8 items, then youâll need to add a column of components to the set.
Each â component in the set contains an â«żâ«ż image-autolayout
as well as a â«żâ«ż dot group
.
Inside the â«żâ«ż image-autolayout
is where you will find all the cards, increase the number of cards to n + 2 (because youâll need two fake ones placed at either end) youâll also need two drag actions for prototype connections on the â«żâ«ż image-autolayout
layer: one connects to its preceding â and one connects to its succeeding â, but there will be no drag action for the fake âs at the endpoints (I placed the two fake ones at the very bottom of each column), instead they have a 1ms delay
and instantly swap itself to its real counterpart.
â«żâ«ż dot groups
are pretty straightforward, the number of dots should always reflect the real number of items in the carousel (excluding the fake âs), and each â sleek_dot
has an on click
prototype action that smart animates to the corresponding â, with ease out
curve and 300ms
duration
Ok. Now itâs getting way above my understanding. You should really teach a course in this. Or someone should teach a course in variables and interactive components.
I will just add an additional image. Anyway for some reason the dots are not working can you tell me why and how to fix? Also to get the carousel to into my project, what do I need to do? Please be detailed. Thanks
https://www.figma.com/file/wKY3ugI3PX2p012EgSEgtp/Infinite-Carousel-mine?node-id=0%3A1
To use this on other projects you need to publish the file as a component library and then copy the ââ· Previewâ Frame to your other project.
I checked your file, the dots were outside of the preview frame containing it. I dragged the frame to make it taller, all good
Thanks. You should really be teaching a course in this. I know there are videos but they donât actually replace a course. Even a course of this infinite carousel, breaking it down from start to finish, each step. Udemy is a great platform to teach classes on.
I did manage to get it into my file however I can center the dots they are off center. How do I fix that? I understand if you move the bottom of the frame up or down it makes then closer or farther but I canât center them.
https://www.figma.com/file/BHrXl9UournLo7Bgksht2W/Valentinos-menu-app-WF-Updated?node-id=328%3A442
One center constraint placed on ââ banner_baseâ solved the issue, push an update and see the change take place
Hi tank666, I just came back to thank you! Your file was very helpful and was great to learn from, thank you.