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

fix(Carousel): fix crossfade animation #5671

Merged
merged 1 commit into from
Mar 11, 2021

Conversation

kyletsang
Copy link
Member

@kyletsang kyletsang commented Feb 22, 2021

Fixes #5143

In the crossfade transition, the slide that switches out uses a transition delay which isn't accounted for in our addEndListener handler. This causes the slide to disappear prematurely, resulting in that flash.

Here's some links to compare the behavior between RB bugged/fixed carousel and upstream bootstrap's carousel:

Bootstrap 4.6:
https://getbootstrap.com/docs/4.6/components/carousel/#crossfade

RB before fix:
https://react-bootstrap.netlify.app/components/carousel/#crossfade

RB after fix:
https://deploy-preview-5671--react-bootstrap.netlify.app/components/carousel/#crossfade

@kyletsang kyletsang merged commit a24ab44 into react-bootstrap:master Mar 11, 2021
@kyletsang kyletsang deleted the fix/carousel-fade branch March 11, 2021 18:17
This was referenced Mar 11, 2021
This was referenced Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Carousel flashes on transition
1 participant