[Feat]: Add ability to customise opacity percentages during fade #1025
Unanswered
freddieerg
asked this question in
Ideas
Replies: 1 comment 1 reply
-
@davidjerleke were you able to take a look at this please? :) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Which variants of Embla Carousel are relevant to this feature request?
Feature description
I believe the current default implementation of embla-carousel-fade causes the currently selected slide to fade out at the inverse rate that the target slide is being faded in. ie, if you are half way through a drag, both slides are at 50% opacity. This results in the background of the container being visible, which may not always be the desired behaviour.
I would like to see if we could agree on a user option for this plugin that would allow some customisation of the opacities. My specific requirement is the ability to keep the outgoing slide at 100% until the incoming slide is also at 100%, thus avoiding any visibility of the container background.
Additional Context
If we're able to come to some agreement on an implementation, I'm quite happy to create a PR for this.
Before submitting
Beta Was this translation helpful? Give feedback.
All reactions