Replies: 1 comment
-
Hi @Joobs, Thanks for your question. Have you seen the tween examples in the docs? They might help you achieve what you want? |
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
-
Summary
I have a looped carousel that is draggable, it's also center aligned, and for styling reasons I need to apply a rotation based on position. I would like to get the position of the slide relative to the start position.
So when a slide is in the center, it's position is 0, as it's dragged to the left it's -1 (and when you're dragging the slide this number updates fractionally when it's in between snap positions), if it's dragged some more it's -2 etc. And the opposite happens when you drag right, +1, +2 etc.
I've looked at the internalEngine a bit but can't quite work out how to get this working with the looping when center aligned. Any pointers how I can work this out?
If applicable, which variants of Embla Carousel are relevant to this question?
Additional information
No response
CodeSandbox example
No response
Beta Was this translation helpful? Give feedback.
All reactions