Linting #1423
AdrienLemaire
started this conversation in
Ideas
Linting
#1423
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 there,
Sorry if this tool already exists, in which case this is a question.
We are using the Transition & Transition.Child components to handle animations in our app, and are often facing issues with timing: timeout, unmounting, css delays & durations.
When using an animation (not a transition), I think we need to define "duration-[time]" in addition to our delay & animate classes, else headlessui Transition doesn't understand when to act.
It would be very helpful to have a linting tool that would detect whether an animation cannot be played due to an incorrect timing.
Example:
Can't headlessui determine on its own that "animation-delay-400" & "animate-show-bubble" (in tailwind.config "show-bubble 0.5s ease-in forwards") is going to take 900ms ?
Beta Was this translation helpful? Give feedback.
All reactions