Skip to content
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

IE11 + transition on :hover : slides outside container get visible during trans #2805

Closed
1 of 3 tasks
Tucsky opened this issue Sep 17, 2018 · 1 comment
Closed
1 of 3 tasks

Comments

@Tucsky
Copy link

Tucsky commented Sep 17, 2018

This is a (multiple allowed):

swiper_ie11_csstransition_issue

What you did

Setup on simple carousel with 4 slidesPerViews
Add a transition on hover to highlight the hovered slide AND fadeout other slides that are not hovered

.swiper-slide {
  transition: opacity .4s ease-out;

  &:hover {
    opacity: 1 !important; // highlight hovered slide
  }
}

.swiper-container:hover .swiper-slides {
  opacity: .5; // fade out other slide
}

Expected Behavior

Hovered slide is fully opaque while others are less opaque, carousel works, and slides that are outside .swiper-container doesnt shows up.

Actual Behavior

Everything works out except when the transition of the slides occur, slides that are outside container get visible (even overflow:hidden is set on .swiper-container, as it is by default)

How to fix

Idk why but setting perspective: 1px on the wrapper fix that issue.

@nolimits4web
Copy link
Owner

IE issue, nothing can do with it

@lock lock bot added the outdated label May 15, 2019
@lock lock bot locked as resolved and limited conversation to collaborators May 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants