Comments (4)
For debugging animation issues, I recommend turning down the animation time to something on the order of 60s. That should give you enough time to investigate what's going on in a web inspector. The React TransitionGroup
code should be keeping DOM elements in the correct order, providing your key
attributes aren’t changing, so I would suspect there’s either something with keys or with your animation.
from velocity-react.
same problem is visible here : http://codepen.io/agrewell/pen/ZYdGOJ
and you may see how in example on click in the middle on any row you see disappearing last row "Out" sliding right right under the row stack
exactly the same behaviour I'm experiencing with twitter-fabric/velocity-react TrnasitionGroup.
I've tried with duration=30000 and saw the same:
- click on the row
- stack shrinks on one row
- in the bottom appears row with the content of last row
- animation takes place
from velocity-react.
resolved )
found out that I was having key as index of iteration and reinjected element had conflicted key
Like below:
let index = 0;
[...].map((item)=>{
index ++;
<div key={index}>
})
changed to unique key and everything works perfect!
Thnak you ! 😄
from velocity-react.
Glad to hear!
from velocity-react.
Related Issues (20)
- Conditional rendering inside VelocityTransitionGroup error in 1.4.0 HOT 2
- velocityHelpers is exported with a lowercase starting letter.
- examples
- Can't resolve velocity on create-react-app v2 HOT 5
- Update react-transition-group dep version
- No way to set duration or speed on VelocityTransitionGroup
- TypeError Cannot read property 'length' of null in velocity-component.js (v1.4.1) HOT 5
- Error caused by require TransitionGroup module directly HOT 4
- velocity-animate@^2.0.0 compatibility HOT 1
- next is not a function HOT 1
- slideDown finishes "too early" HOT 1
- Missing typings HOT 2
- Is this project still being developed? HOT 5
- Update react-transition-group HOT 3
- TransitionGroup CJS require not valid HOT 1
- Issue in Webpack production build
- VelocityTransitionGroup throws Strict Mode warnings HOT 3
- How to use sequences?
- TypeError: this.updater.enqueueCallback is not a function
- Upgrading to react 17 gives error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from velocity-react.