You can use display-grid to force the elements in a single row.
And you can play with the properties of the animation to get this effect, but the duration of the animation should be the same for all the elements; what is changing from one to the other is the delay , to make then be at different stages of the animation:
Update: this snippet is what I think you want, note that I changed the HTML a bit so that I can manipulate the elements size and display, Implemented with CSS3 only, heavily inspire by this codepen:
I have 9 logos as of now and that logo I am displaying in the list order. Now what I am doing is, I have to display the first 3 logos and wait for some second then hide that 3 logos and display the next 3 logos again wait for some second, and display the next 3 logos. I need infinite this.
For example:
On the page load display first 3 logo
1 2 3
//wait for the second
1 2 3 // hide this
4 5 6 // display this
7 8 9 // hide this
//wait for second
1 2 3 // hide this
4 5 6 // hide this
7 8 9 // display this
// wait for second
1 2 3 // display this
4 5 6 // hide this
7 8 9 // hide this
I need infinite.
are you looking for CSS only solution? is ok to have javascript/jQuery?
Comment posted by Naren Verma
@ROOT, Can you help me with jQuery?
Comment posted by ROOT
Yes, sure I will check it now.
Comment posted by ROOT
@Neren, sorry my friend I have something urgent, I can’t work on it if its not urgent thing for I will have a look at it later.
Comment posted by Naren Verma
@ROOT, No problem, I’ll wait for your reply. Stay safe stay healthy.
Comment posted by Naren Verma
How can I manage the speed of fadein? Now it’s running very fast
Comment posted by vals
Change the percentages in the keyframes. I have added another keyframes set that fades slower
Comment posted by prnt.sc/se73v6
Apologies for the late reply, I checked your updated answer. It’s almost working till 9 but after 9 when it starts from 1 then I am getting some white bg or light opacity. You can check this image
Comment posted by vals
I believe it’s solved now. I have added a keyframe for the 100% position
Comment posted by Naren Verma
Yes, It’s working perflect. Thanks for the help. Upvote from my side
Comment posted by Naren Verma
Thanks for the answer. I checked the snippet. It’s working. Is it possible to display all the logos in the same place? I mean now it is displaying below. I tried position: absolute; to the li but it’s not working.
Comment posted by ROOT
yes, we can use
Comment posted by ROOT
@NarenVerma, this is a bit tricky one, I just want to ask if you want something like this then why not using a slider library?
Comment posted by ROOT
@NarenVerma, I was able to achieve that using CSS only check it out, but I really recommend using a CSS slider library.
Comment posted by Naren Verma
Hi @ROOT, Your answer is also working but I found the best answer from vals. Upvote from my side.