-
-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixes #80 #81
fixes #80 #81
Conversation
@antonisntoulis I have the same issue too with my slide transition, the de-styled splide was shown during transition. Any workaround without changing Splide.vue? |
Honestly, I would start with considering using some other carousel library like swiperjs, since splide seems abandoned. As for a fix that doesn't include changing the sllide.vue, what I was able to do in a project was to watch what classes are removed when the slider is unmounted, usually the biggest change is the flex being removed and the slides becoming stacked one on top of the other, so apply a flex with css to your slide container. After that the movement should be minimized but still visible, so you can fade out the slider using the onBeforeUnmount hook or something similar. Hope I helped. |
@antonisntoulis Did you end up switching to swiperjs or another library? I've tested swiper as well as others, and found that splidejs performance remains unmatched compared to other libraries, which is why I want to continue using it 😫 |
It's been a while since I last used a carousel library and I agree that splidejs is so good, but considering it has been abandoned for almost a year it's probably wise to move on to something more actively maintained. I believe it might be a good time for a fork of Splidejs to appear. |
@antonisntoulis Yup, I made a fork with minor changes I needed, like this issue here - It has vast enough functionality, that even without maintenance I imagine it'll work well for awhile. It's a shame it got abandoned... I hope it'll get revived eventually |
This issue is my only gripe with this library with the Vue integration. It does bring up a larger topic though, where perhaps Vue I was using vanilla Splide with Vue 2 for a long while, and used this mixin as a solution. Real shame to see this issue occur with the intended Vue 3 adaption after I've migrated over. As a workaround, I'm patching the ...
props: {
delayUnmount: {
default: 0,
type: Number
},
},
...
onBeforeUnmount(() => {
setTimeout(() => {
splide.value?.destroy();
}, props.delayUnmount);
});
... <splide :delay-unmount="transitionDuration"> Be great to get an official fix though. |
Related Issues
#80
Description
We use mutation observer to observe when splide dom element gets removed from the dom before destroying the splide instance to avoid #80