question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When the transition "fade out" ended, it removes all "out" classes in the element

See original GitHub issue

Vue.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:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
LinusBorgcommented, Sep 26, 2016

(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:

class="out and cubic animated fade out right"

…which is not valid HTML. Furthermore, Vue uses classList.add() / remove(), so both ocurrences of out would be removed.

1reaction
YamiOdymelcommented, Sep 26, 2016

I think that I will change the naming convention of the animation from fade in right to fadeInRight to solve the problem temporary,

sorry for wasting your time, and thanks for the explanation 😄

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found