Repository navigation
Description
Bug Report
Ionic Info
Run ionic info from a terminal/cmd prompt and paste the output below.
Ionic:
ionic (Ionic CLI) : 4.1.2 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.0.0-beta.12
@angular-devkit/core : 0.8.3
@angular-devkit/schematics : 0.8.3
@angular/cli : 6.2.4
@ionic/ng-toolkit : 1.0.8
@ionic/schematics-angular : 1.0.6
Cordova:
cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 7.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.1.4, (and 16 other plugins)
System:
Android SDK Tools : 26.1.1 (/home/davidd/Android/Sdk)
NodeJS : v10.11.0 (/usr/bin/node)
npm : 6.4.1
OS : Linux 4.15
Describe the Bug
Given effect: 'fade' the slideshow continues to use the standard animation.
Steps to Reproduce
Steps to reproduce the behavior:
- Create an ion slides component
- add
[options]="{effect: 'fade'}" - Use autoplay, or manually trigger slide transitions
- View animation
Related Code
My full slide opts are as follows
slideOpts: SwiperOptions = {
effect: 'fade',
allowSlidePrev: true,
allowSlideNext: true,
direction: 'horizontal',
autoplay: true,
speed: 3000
};
Expected Behavior
The effect to be the fade animation
Additional Context
Changing other parameters, such as direction works fine.
I'm assuming the issue is a pretty obvious one...
Ionic uses a custom swiper build:
http://idangero.us/swiper/api/#custom-build
As seen on this line it does not include the Fade effect:
https://github.com/ionic-team/ionic/blob/master/core/src/components/slides/swiper/swiper.js#L3
I'm all for keeping the base swiper small. But I cannot figure out how to alter the swiper bundle and/or create my own swiper bundle for ionic to use. Is there a workaround or some documentation I'm missing?
Activity
[-][ionic 4.0.0-beta.12][/-][+][ionic 4.0.0-beta.12] Slides: FadeEffect does not work[/+]Nazirovich commentedon Nov 5, 2018
Agree
jchri853 commentedon Nov 9, 2018
coverflow effect does not work either
SwenVogel commentedon Nov 12, 2018
The problem still exists in the latest version 4.0.0-beta.15. Any suggestions for any workaround?
jmondragon commentedon Nov 29, 2018
None of the
effectoptions seem work (except 'slide').Swiper API:
SwenVogel commentedon Nov 30, 2018
As workaround i used ngx-swiper-wrapper.
LuizTokuhara commentedon Feb 7, 2019
Hi, how did you fix it using ngx-swiper-wrapper? Just install it? Could you explain.
Thanks!
edgarelc commentedon Feb 12, 2019
This is still an issue in version 4.0.1 :(
liamdebeasi commentedon May 22, 2019
Hi there,
This has been resolved via #17959 and is available now in Ionic. Please see the ion-slides documentation for instructions on how to use the effects in Ionic.
Thanks for using Ionic!
ionitron-bot commentedon Jun 21, 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.