davidjerleke / embla-carousel

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

Custom Transition in Embla Carousel Slider #314

Closed rkgain closed 2 years ago

rkgain commented 2 years ago

We cannot set custom transitions or delay in each transition while slide (e,g The slider used in this site has a nice transition effect). We have speed to control the overall transition but not transition type. Please if that can be added it will be a super cool slider. At least some basic transition can be added if possible like

**ease** - specifies a transition effect with a slow start, then fast, then end slowly (this is default)
**linear** - specifies a transition effect with the same speed from start to end
**ease-in** - specifies a transition effect with a slow start
**ease-out** - specifies a transition effect with a slow end
**ease-in-out** - specifies a transition effect with a slow start and end
**cubic-bezier(n,n,n,n)** - lets you define your own values in a cubic-bezier function

Or if someone know how we can achieve the same please feel free to assist. :-)

davidjerleke commented 2 years ago

Hi @rkgain,

Hope you're doing good! Maybe you did search existing issues before creating this issue. But if you didn't, a friendly reminder: Please take a moment to browse issues before you create a new one. This has been brought up before:

Best, David

davidjerleke commented 2 years ago

Duplicate of: