davidjerleke / embla-carousel

A lightweight carousel library with fluid motion and great swipe precision.
https://www.embla-carousel.com
MIT License
5.87k stars 178 forks source link

Fade Animation #233

Closed andyjamesn closed 2 years ago

andyjamesn commented 2 years ago

Feature request is related to

Is your feature request related to an issue?

No

Describe the solution you'd like

Add a fade effect on change. I was looking at the demo and I am sure if must be pretty similar to the scale example:

https://codesandbox.io/s/embla-carousel-scale-vanilla-gc3b0

I did look at it to see if I could adapt it but was not quite sure how to add this

It would be something like setting the CSS to change opacity with a transition eg:

transition: opacity 1250ms ease-in-out;

davidjerleke commented 2 years ago

Hi @andyjamesn,

This has been brought up a lot of times. I’m guessing you haven’t searched the issues for fade. And I suppose you haven’t read this too #187.

Here is the answer to this.

Please do some research before opening up another duplicate issue. Thanks for understanding!

David

davidjerleke commented 2 years ago

Duplicate of #39.

davidjerleke commented 4 months ago

Released in 8.1.0.