You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, ion-slides are kind of buggy, only custom effect is working... if you put 2 or more sliders on same page it act strange too, some can loop and others not.
Same issue here... None of the effects in the swiper API works at all ("slide", "fade", "cube", "coverflow" or "flip"). The only one that works is "slide" which is the default one.
I'm finding something is calling toString on the options object before it is passed to swiper.
From normalizeOptions:
Looks like react-dom is trying to convert it to string and leave it as a regular attribute, as I can work around it by reffing: handleSlidesRef = (ref: any) => ref && (ref.options = { initialSlide: 3, freeMode: true });
We have not merged this PR in yet. The team is investigating how to properly integrate these changes into the framework. I will post here when it gets merged in.
Thanks!
Reacted by Filipe Kalicki, microwin168, Luiz Tokuhara and Fabiano Albernaz
After some discussion with the team, we have decided to go a different route with the swiper animation plugins. Instead of adding the additional animations directly into the framework, we have decided to expose the event handlers that swiper provides. This has a few benefits:
Ionic users do not need to include the swiper animations in their bundle if they aren't using it.
Users can still incorporate the flip, fade, cube, and coverflow effects. We will provide instructions on how to do so in the Ionic Docs.
Users can also develop and integrate their own custom animations.
I have created a PR for this here: #17959 which will be merged instead of #16616. Any feedback on this PR would be greatly appreciated!
Thanks!
Reacted by Nazirovich, Daniel Zhang, James and microwin168
I have merged #17959, and it will be in the next release of Ionic. I have published a nightly build if anyone would like to test it out and provide feedback. (npm i @ionic/angular@dev)
I'm finding something is calling toString on the options object before it is passed to swiper.
From normalizeOptions:
Looks like react-dom is trying to convert it to string and leave it as a regular attribute, as I can work around it by reffing: handleSlidesRef = (ref: any) => ref && (ref.options = { initialSlide: 3, freeMode: true });
This comment is overlooked - options does not even seem to be passed to the slider in react as of now.
The issue you are describing does not seem to be related to the slides effect. Please open a separate issue. Also make sure you note you are using React.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Activity
Nazirovich commentedon Feb 7, 2019
It's not working... I really hope they solve this issue asap... The fade effect on the sliders is much needed for my work.
LuizTokuhara commentedon Feb 7, 2019
Yes, ion-slides are kind of buggy, only custom effect is working... if you put 2 or more sliders on same page it act strange too, some can loop and others not.
yshnv commentedon Feb 11, 2019
ion-slides properties not working correctly.
Unable to change effects of slides.
edgarelc commentedon Feb 12, 2019
Same issue here... None of the effects in the swiper API works at all ("slide", "fade", "cube", "coverflow" or "flip"). The only one that works is "slide" which is the default one.
microwin168 commentedon Feb 25, 2019
I have same issue.Will this issue be fixed in plan?
drew-r commentedon Feb 25, 2019
I'm finding something is calling toString on the options object before it is passed to swiper.

From
normalizeOptions:Looks like react-dom is trying to convert it to string and leave it as a regular attribute, as I can work around it by reffing:
handleSlidesRef = (ref: any) => ref && (ref.options = { initialSlide: 3, freeMode: true });microwin168 commentedon Feb 28, 2019
@liamdebeasi Is this a bug? I need this function so much.
.Will this issue be fixed in plan?
Thanks for reply!
microwin168 commentedon Feb 28, 2019
@thiagomatrix Have you resolve this issue?
liamdebeasi commentedon Feb 28, 2019
Hi there,
We have a PR currently in review that will bring more effects to
ion-slides(includingfade). #16616Our plan is to get this into the next release of Ionic. Thanks for your patience!
kalicki commentedon Mar 21, 2019
Don't have PR and fix at release (4.1.2)
liamdebeasi commentedon Mar 21, 2019
Hi there,
We have not merged this PR in yet. The team is investigating how to properly integrate these changes into the framework. I will post here when it gets merged in.
Thanks!
jmzwcn commentedon Mar 26, 2019
look forward to your good news!
microwin168 commentedon Mar 28, 2019
good job thanks so much!
liamdebeasi commentedon Apr 4, 2019
Hi everyone,
After some discussion with the team, we have decided to go a different route with the swiper animation plugins. Instead of adding the additional animations directly into the framework, we have decided to expose the event handlers that swiper provides. This has a few benefits:
I have created a PR for this here: #17959 which will be merged instead of #16616. Any feedback on this PR would be greatly appreciated!
Thanks!
Nazirovich commentedon Apr 4, 2019
@liamdebeasi thank you very much for updating us. Looking forward to the release!! Good luck.
microwin168 commentedon Apr 16, 2019
Looking forward to the release!
liamdebeasi commentedon Apr 16, 2019
Hi everyone,
I have merged #17959, and it will be in the next release of Ionic. I have published a nightly build if anyone would like to test it out and provide feedback. (
npm i @ionic/angular@dev)See https://github.com/ionic-team/ionic/blob/master/core/src/components/slides/readme.md for instructions on how to use.
Thanks!
microwin168 commentedon Apr 18, 2019
I have upgrade to [email protected],but I can't apply effect property.
slideOpts = { effect: 'cube', initialSlide: 0, speed: 300, direction: 'horizontal', loop: true, };<ion-slides pager="true" [options]="slideOpts"> <ion-slide> <h1>Slide 1</h1> </ion-slide> <ion-slide> <h1>Slide 2</h1> </ion-slide> <ion-slide> <h1>Slide 3</h1> </ion-slide> </ion-slides>stilren commentedon Apr 18, 2019
This comment is overlooked - options does not even seem to be passed to the slider in react as of now.
liamdebeasi commentedon Apr 18, 2019
Hi @microwin168,
Please follow all of the usage guide when applying animations: https://github.com/ionic-team/ionic/blob/master/core/src/components/slides/readme.md#cube
You will need to make sure the
beforeInit,setTranslate, andsetTransitionproperties are all set.liamdebeasi commentedon Apr 18, 2019
Hi @stilren,
The issue you are describing does not seem to be related to the slides effect. Please open a separate issue. Also make sure you note you are using React.
Thanks!
ionitron-bot commentedon May 18, 2019
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.