Extending data attributes of Transition-Component and TransitionChild-Component #3590
aufdenpunkt
started this conversation in
Ideas
Replies: 0 comments
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.
-
Hi,
First, thanks for this great library, which I really like to use in my projects.
I have the use case where I built a reusable carousel based on XState and your Transition/TransitionChild component. As the carousel can have slides that can animate in the left or right direction, I was curious if there is a way to extend or abstract the data attributes by something like
data-next
ordata-previous
for these components.In my case, the logic behind the extra attributes comes from the state management.
I was thinking about something like this:
Thanks and best,
Chris
Beta Was this translation helpful? Give feedback.
All reactions