Giter VIP home page Giter VIP logo

Comments (7)

yiminghe avatar yiminghe commented on May 17, 2024

try install 1.0.4.

If not works, can you point me a demo? exclusive will make current animation stop immediately

if (exclusive) {

from animate.

juliocesar avatar juliocesar commented on May 17, 2024

Hey!

Yeah, I think I misunderstood it. I thought exclusive made the enter animation wait until a leave animation is finished.

I'll see if I can add that myself.

from animate.

xujihui1985 avatar xujihui1985 commented on May 17, 2024

@juliocesar see example for exclusive, http://react-component.github.io/animate/examples/exclusive.html, this has been fixed in 1.0.5

from animate.

juliocesar avatar juliocesar commented on May 17, 2024

@xujihui1985 Hey! Thank you. Just checked, and I don't think it's a bug in exclusive per se.

I thought exclusive meant that before the next component enters, that it would wait for a current one to leave, and only then be put in the DOM and animate, but that's not how it works at all.

In my case at least, exclusive doesn't seem to make any difference (toggling it on or off yields the same result).

from animate.

xujihui1985 avatar xujihui1985 commented on May 17, 2024

@juliocesar exclusive here means, stop the current one before next compnent enters, and that should make difference when toggling it or or off, try to clone the latest code and toggle the property in examples/exclusive.js to see the difference :)

from animate.

yiminghe avatar yiminghe commented on May 17, 2024

non exclusive: http://react-component.github.io/animate/examples/simple.html

exclusive: http://react-component.github.io/animate/examples/simple-exclusive.html

from animate.

juliocesar avatar juliocesar commented on May 17, 2024

@xujihui1985 @yiminghe Many thanks!

Yeah, I misunderstood it. I was looking for a way to queue the enter/leave process. Will ping back here if I come up with something.

This is what I'm cooking with it -> https://gist.github.com/juliocesar/ae67cc40593d71e2f5e4

from animate.

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.