You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to propose 2 changes: (a) we (in the docs) show enterActive and leaveActive first. That's the class that establishes the transition duration and it feels logically like we should always show it first. And (b) I'd like to rename enter to enterFrom. Vue just changed from using v-enter in Vue 2 to v-enter-from in Vue 3. Having a enterTo and enterFrom helps identify that these are the two classes you use to apply your styles from one state to the other (e.g. opacity 0 to opacity 1).
Hi!
I was just playing with the latest useTransition on 0.24 beta - it's working beautifully! I had a few notes/ideas from a usability perspective:
I'd like to propose 2 changes: (a) we (in the docs) show
enterActive
andleaveActive
first. That's the class that establishes thetransition
duration and it feels logically like we should always show it first. And (b) I'd like to renameenter
toenterFrom
. Vue just changed from usingv-enter
in Vue 2 tov-enter-from
in Vue 3. Having aenterTo
andenterFrom
helps identify that these are the two classes you use to apply your styles from one state to the other (e.g. opacity 0 to opacity 1).My example would then look like:
console.log()
snuck into the code ;) - https://github.com/stimulus-use/stimulus-use/blob/master/src/use-transition/use-transition.ts#L79That's all! Thank you!
The text was updated successfully, but these errors were encountered: