Code Monkey home page Code Monkey logo

Comments (11)

Alexander-Taran avatar Alexander-Taran commented on June 6, 2024 1

stale since 2016

from animator-css.

zewa666 avatar zewa666 commented on June 6, 2024

without a full example it's hard to replicate the issue, but I guess it might be because you've placed the class au-stagger onto the template tag. Please try to wrap the animated divs with another div and place the au-stagger over there, like

<template>
  <div class="au-stagger">
    <div repeat.for="item of feedbackService.items" class="au-animate feedback-item level-${item.level}">
        <a click.trigger="feedbackService.removeItem(item)" href="#" class="fa fa-times-circle"></a>
        <p>${item.message}</p>
    </div>
  </div>
</template>

from animator-css.

RomkeVdMeulen avatar RomkeVdMeulen commented on June 6, 2024

After a lot of trial-and-error I've found that the problem only occurs when there's interpolation in the animated element's class list.

I've created an Plunkr demonstrating the issue. The top three items have class interpolation, the bottom three don't. See what happens when you try to remove item number 2.

from animator-css.

zewa666 avatar zewa666 commented on June 6, 2024

hmm I've looked at your example few times and don't really have a clue what the error or bug is you're trying to point out.

from animator-css.

RomkeVdMeulen avatar RomkeVdMeulen commented on June 6, 2024

That's strange... I'm seeing this bug in both Chrome and Firefox. Here's a screencast of what I'm seeing:

screencast

When I click to remove item 2, it briefly becomes blue before folding. Same thing when I remove item 1. This happens with the top three items which have an interpolated className, but not the bottom three that use inline styling.

You're not getting this?

from animator-css.

zewa666 avatar zewa666 commented on June 6, 2024

oh ok now I understand what you mean. Yep I can see the same effect. Hmmm honestly I have no clue whats causing this, guess maybe something related to how the ViewSlots are added and removed. @martingust and @EisenbergEffect do you maybe have an idea whats causing the issue with the class interpolation?

from animator-css.

RomkeVdMeulen avatar RomkeVdMeulen commented on June 6, 2024

Any progress on this?

from animator-css.

niieani avatar niieani commented on June 6, 2024

@RomkeVdMeulen I have analyzed this issue (today) and I think I know where the problem lies. I'll get back to you on this.

from animator-css.

EisenbergEffect avatar EisenbergEffect commented on June 6, 2024

@niieani Did you have any feedback on this?

from animator-css.

niieani avatar niieani commented on June 6, 2024

Haven't had the time to work on this yet, just did some preliminary assessment. It's on my list though.

from animator-css.

RomkeVdMeulen avatar RomkeVdMeulen commented on June 6, 2024

I ran into this issue again today so I thought I'd poke this old issue in the hopes it won't be completely forgotten.

from animator-css.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.