Replies: 1 comment
-
|
@tayteboss Thank you for the suggestion! Exposing physics options like mass, bounce, or dampening is unfortunately a lot of work. The reason is that these settings can easily break the carousel animations, which would lead to a large number of bug reports and a huge maintenance burden. I simply don’t have the spare time to manage that right now. If this project were to receive decent funding, I would have the bandwidth to look into safely exposing physics configurations. Until then, it’s not something I can support. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Which variants of Embla Carousel are relevant to this feature request?
Feature description
First of all thank you, I really like this slider lib and I use it all the time.
Recently I have repeatedly encountered the need to create a paralax effect, or to make the drag effect on the carousel heavier.
By manipulating the "duration" property value, I can create an interesting inertia effect giving a feeling of heaviness when clicking on the control buttons.
I think it's a shame we can't do the same thing with the drag behavior.
I realized that the desired effect could be reproduced by modifying a few lines of the
DragHandlerfile.For example, with a factor of
0.5on thediffScroll,diffCrossanddiffvariables in themovefunction, I can scroll the slider half as fast as the pointer, creating a parallax effect.And by directly adjusting the "baseSpeed" I can control the animation duration when the pointerUp event fired.
I would like to know if adding options for these two behaviors would be possible? For example, it could be adding a
dragFactoranddragDurationoption in the slider constructor.Or maybe there is another way to reproduce a similar effect?
Additional Context
Additional details here...
Before submitting
Beta Was this translation helpful? Give feedback.
All reactions