el-transition
el-transition copied to clipboard
Apply Enter/Leave transitions
This API covers CSS transitions + animations vs. transitions only and avoids the parsing shenanigans and setTimeout. See https://developer.mozilla.org/en-US/docs/Web/API/Element/getAnimations
without types library i need to do this in typescript projects  it's not a really big problem but would be nice have a [types lib](https://github.com/DefinitelyTyped/DefinitelyTyped)
This work represents the changes needed to allow for more complicated element transitions. For example, transitioning from `opacity-0` to `opacity-50`: ```html
### Problem If you trigger a leave transition when you are already hidden the transition still fires modifying the classes, even though the element is already hidden. ### Solution Check...
I'm not sure if this adds too much complexity to the library, but, for my uses, I didn't want a 'hidden' class added to the end of every leave transition....
Awesome!
This is awesomely simple and addresses the problem in an elegant way. Thanks for putting it together!
Is it a crazy idea to be able to pass in an options object in javascript to specify the transitions needed? Perhaps I misread the API? ### Reason? To obviate...