Skip to content

[ionic 4.0.0-beta.12] Slides: FadeEffect does not work #15857

Closed

Description

@DavidDudson

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:

  1. Create an ion slides component
  2. add [options]="{effect: 'fade'}"
  3. Use autoplay, or manually trigger slide transitions
  4. 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

  1. changed the title [-][ionic 4.0.0-beta.12][/-] [+][ionic 4.0.0-beta.12] Slides: FadeEffect does not work[/+] on Oct 5, 2018
  2. Nazirovich commented on Nov 5, 2018

    @Nazirovich

    Expected Behavior
    The effect to be the fade animation

    Agree

  3. jchri853 commented on Nov 9, 2018

    @jchri853

    coverflow effect does not work either

  4. SwenVogel commented on Nov 12, 2018

    @SwenVogel

    The problem still exists in the latest version 4.0.0-beta.15. Any suggestions for any workaround?

  5. jmondragon commented on Nov 29, 2018

    @jmondragon

    None of the effect options seem work (except 'slide').

    Swiper API:

    Tranisition effect. Could be "slide", "fade", "cube", "coverflow" or "flip"

  6. SwenVogel commented on Nov 30, 2018

    @SwenVogel

    As workaround i used ngx-swiper-wrapper.

  7. LuizTokuhara commented on Feb 7, 2019

    @LuizTokuhara

    As workaround i used ngx-swiper-wrapper.

    Hi, how did you fix it using ngx-swiper-wrapper? Just install it? Could you explain.
    Thanks!

  8. edgarelc commented on Feb 12, 2019

    @edgarelc

    This is still an issue in version 4.0.1 :(

  9. liamdebeasi commented on May 22, 2019

    @liamdebeasi
    Contributor

    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!

  10. ionitron-bot commented on Jun 21, 2019

    @ionitron-bot

    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.

  11. locked and limited conversation to collaborators on Jun 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    package: core

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions