When the transition "fade out" ended, it removes all "out" classes in the element
See original GitHub issueVue.js version
2.0.0-rc.5
Steps to reproduce
<transition enter-active-class="fade out right" ...>
<section class="out and cubic animated">
...
What is Expected?
When the transition ends, it should’ve removed fade out right
and left out and cubic animated
.
What is actually happening?
When the transition ends, it left and cubic animated
only (everything with out
was gone).
Why fade out
naming convention?
Because I am using the CSS framework: Semantic-UI,
the naming convention with Semantic-UI is to split each word,
for example: ui input
, ui large fluid input
so are the animations, any possible ways to fix this please?
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Remove class from the dom after transition fadeout effect is done
After the play image's fade out effect finishes, then I want it to be removed. How would I add that to the code?...
Read more >CSS transition not running after element is moved to different ...
When the transition ends move the element to another list; Remove hidden class so the element will fade-in. HTML <ul id="list1"> ...
Read more >transition - CSS: Cascading Style Sheets - MDN Web Docs
Transitions enable you to define the transition between two states of an element. Different states may be defined using pseudo-classes like ...
Read more >How to fade the removal of a DOM Element using CSS and ...
JavaScript: First, we create the DOM object of the button and paragraph (with suitable tag and id). Further, we add the event listener...
Read more >Transition | Vue.js
If it does, a number of CSS transition classes will be added / removed at appropriate timings. ... .slide-fade-enter-active { transition: all 0.3s...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
(Disclaimer: Bear with me, my CSS-wizardry is weak, and I have never worked with Semanti-UI so correct me if I’m wrong here)
So Semantic-UI relies on the order of classnames? Sounds like a recipe for desaster in dynamic UIs.
To work, the section element would have to would look like this during leave transition:
…which is not valid HTML. Furthermore, Vue uses
classList.add() / remove()
, so both ocurrences ofout
would be removed.I think that I will change the naming convention of the animation from
fade in right
tofadeInRight
to solve the problem temporary,sorry for wasting your time, and thanks for the explanation 😄