#Carousel animation component not scrolling!moving to the center on an image with a bigger width
26 messages · Page 1 of 1 (latest)
yes sure, 1 moment
I've sent the link in direct messages
How can I make all 3 properties align to the center
I think you could put all of them into a frame or something where the frame's width is equal or greater than the width of the image that has the greatest width (in this case the lenovo's), and center each images in each each frame to the middle.
Oh, I'll try it. I've thought about it but I wasn't sure it was the best way. Thank you. I'll let you know after.
Yeah idk if this is the best way. I would probably put on autolayout and do fixed width and height. And then turn it to center -- this way if you ever need to update the width (in case if another image has a greater width), then you can do it easier and won't have to manually center everything again!
I'll ty this, do I put the autolayout on the component or variants?
On the frame that contains the images!
You put autolayout on the parent element, and it will organize the immediate child elements
I'll try it
Make sure those two on the top are fixed!
I'm making the images the same width
Ohh yeah that works also hahah
I forgot you could make the image fitted
nice!
I think the weird. thing about it though might be that when it comes to coding it wouldn't work like this (?)
yeah but this is probably going to be clumsy as soon as I add more brands on the list xD
Just because I would assume when you code you would use the original images, but I guess. maybe you could do the same in code
yes, and I can export these images as PNG in the same widh
Yeah that is a workaround -- I am just not sure if thats the "correct way" of doing it for coding haha, so i was just questioning that
it's probably not the correct way. I'll have to do this for 100-200 brands and changing the frame width is going to be super clumsy xD
I think you can also just have all the variants on an autolayouted frame. That way you only need to do it once
Also, how do you have the carousel setup?
I use clip content
I'll try to capture a GIF or video of how the carousel slider animation looks