Closed TiesTheunissen closed 9 months ago
Hi,
Which version are you currently using? From the changelog on npm: Version 0.0.9: Change in the behavior of the auto slide. Auto slide will now occur on drag stop (when the user releases the mouse), and will automatically slide towards the nearest slide based on the set threshold. Auto slide is set to true by default. Before this version, autoslide was triggered on drag move (when the user drags the carousel) which could be a bit surprising in term of UX/UI.
What you mean, if I understand correctly, in an 'autoplay' feature (carousel automatically slides every X seconds (setInterval), with a number of slides => slideToScroll)?
Adding a feature is not a problem, but what matters to me the most is doing it elegantly. Adding an 'autoplay' feature would also mean to add a 'play' button and a 'pause' button which should also fit in the interface. Another library (not maintained) anymore was stopping the autoplay and 'mouseenter' (hover) on the carousel, but this would not be a raisonable option since there is no mouseenter or hover on smaller devices.
Cheers
hi GreenFlag31, Thnx for the reply. then i didnt understanded the feature. thnx for clearing that up.
then indeed i would like to request another feature if possible. my usecase is that i want to 'autoplay' option that automaticlly slides from left to right (or infinity) if the option is available. for me i would like to see it that ti would go smoothly without ever stopping. but i can also see that someone would like it to go after 300ms to slide 1 item to the right, then again after 300ms 1 item. for me in my usecase i woule like to see it a smooth behaviour with a steady speed without stopping ever. do you thing that is possible?
That's something I can think of, but there are technical limitations for a 'steadyplay' (going without user actions to the right, possibly infinitely). This actions has to be performed in Javascript (not a CSS animation), which can cost in performance.
I will try and let you another message if the results are satisfying/elegants.
Thank you so much!
Hi.
I've made first tests, and I think I won't implement a steadyplay carousel due to technical limitations. Problems arise from the fact that the carousel will be autonomously moved (by JS, no user action), which then cause a lack of precision on the indication of slide change.
The refreshing rate is of two per second, to not cause performance problem. The problem is even more visible when autoSlide is disabled and the user stops the steadyplay mechanism just after the refresh function was triggered => the slide number indication will be incorrect. Sure, I could correct everything (current slide, the limit for coloring the bullet point navigation), but the user interface will be impacted (very quick 4/6 going to 3/6, bullets colored and back to default, etc). Which will introduce an inconsistent UI.
In other words, this could work, but only under certains conditions, which is not a consistent solution. However, I think that I will implement an 'autoplay' feature (slide auto change every X seconds), which will be available in the next version update.
Cheers.
AutoPlay feature has been pushed to npm (v0.1.3).
If you want to test it out: https://www.npmjs.com/package/ngx-carousel-ease?activeTab=readme.
Feel free to give me your feedback.
Cheers.
hi GreenFlag31,
thnx for the quick response! i've tested out the feature and here is some feedback:
further it looks amezing! well done
Cheers
If you throttle refreshing rate (and it's necessary for performance reasons) and will inevitably come to precision problem / wrong slide number indication / inconsistant UI. But yes, if a turn off the slide number indication and buttons, it could work, but then it will be inconsistent, because this would mean that some options in the library are not compatible with others.
Both approachs (very high refreshing rate in JS and low refreshing rate with a mix of JS and CSS) are not 100% satisfying. Building a solution is not a problem, but what matters to me the most is a clean and robust solution.
Question: in my library, there is a visibility event attached to the carousel. When the user is not active on the current tab, it will pause the carousel (because I don't want JS to perform unecessary actions if the user is not active on the current tab). Would you be interested at relaunching the carousel again if the user comes back on the tab with the carousel?
yes. i would be interested in refiring indeed. and i agree with you to dont have unnecessary JS actions when you're not there to see it.
Hi.
New version has been published on npm: https://www.npmjs.com/package/ngx-carousel-ease?activeTab=readme
Feel free to give me your feedback.
this is perfect for me. thnx!
i've implemented the carousel (thanks for the amezing lib) but i cant get the autoslide working.
for my understanding the autoslide should enable an animation that automatically slides all the items from left to right in an x amount of seconds, and in combination with infinite it should always slide from left to right without ever stopping. is that correct?
if not i would like to add that as an option