[Help]: Transition on pointerUp event only - help and advice needed #485
Unanswered
joakim-roos
asked this question in
Help
Replies: 1 comment 3 replies
-
Hi @joakim-roos, Thank you for your question.
Which sandbox is this? Would you mind sharing the link? Best, |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Recently I found this sandbox which enables use to cross-fade images for our clients, very grateful for sharing this approach!
https://codesandbox.io/s/embla-carousel-github-issue-39-sdkul
Using Embla for almost our clients - what we now are looking for is to do the transition to the next slide on the "pointerUp"-event.
Similar to the above mentioned sandbox, where the next slide fades in when the you release the grab - we want the image to slide in.
I've been testing a few approaches and the closest to good UX/UI would be this sandbox:
https://codesandbox.io/s/damp-hooks-r2muc1
It somewhat works,, but we want the slide to start animating on the pointerUp-event so we get the full transition. If you do a wide drag the slide jumps into place - also the first slide disappears after a full run (i've added loop: true).
Any idea how to approach this? ⭐
Thanks,
Joakim
Beta Was this translation helpful? Give feedback.
All reactions