Repository navigation
Replies: 1 comment
|
Hi @Forsect, Thank you for your suggestion. One important aspect that many developers overlook when proposing large feature requests (such as a complete animation engine rewrite) is that this project is open-source and I'm its sole maintainer. The circumstances surrounding this project are very different from when I initially created its core. Back then, I had more time to dedicate to it. Nowadays, with two toddlers and the challenge of finding time to work on the project (especially when working for free doesn’t pay the bills), my capacity to contribute has significantly decreased. I believe what you're suggesting is possible, but I also think you're oversimplifying it. If the carousel didn't have the looping feature, implementing your suggestion would be straightforward. However, Embla currently offers one of the smoothest, most seamless loop effects out there, without restricting the use of the "previous" and "next" buttons at any time. Many other libraries limit the functionality of these buttons briefly because they haven't yet solved the challenge of achieving a seamless loop. To maintain this level of quality, several technical challenges must be addressed. For instance, with CSS animations, there's no simple way to retrieve the actual current style of an element without triggering layout thrashing, which complicates the timing of when loop logic should be applied. I do have a local branch where I've implemented CSS animations, and I've successfully addressed two out of four major challenges. However, given my current pace, I wouldn’t expect significant progress on this in the near or even distant future due to time constraints. Lastly, I don’t think browser support for On a separate note:
You haven’t shared your setup yet, which makes it difficult for me to understand the issue you're facing. For reference, I’ve tested on an iPhone 8, iPhone 13, and iPhone 16 Pro, and I haven't observed any stuttering on these devices. Simply claiming there’s stutter isn't enough to make a scientific conclusion, I think. Cheers, |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Which variants of Embla Carousel are relevant to this feature request?
Feature description
Left a comment in #890, but I realize it might not be the best place so here I am.
From the comment:
I strongly believe the spring animations are the way to go, yet I don’t relate to your conclusion that we need to use JS - well we don’t:
https://developer.chrome.com/docs/css-ui/css-linear-easing-function
https://github.com/jakearchibald/linear-easing-generator
https://linear-easing-generator.netlify.app/
I am using it with great success in my tailwind-css project for all my other spring animations, and believe me, there is a ton of them. So while I’m working on to find out my issue, I was hoping you could check it out, and maybe even implement it, so maybe, just maybe, my issue would be resolved automatically 😁
Cheers
Before submitting
All reactions