Don't animate panels on initial render (#10130)

* grid: dont animate panels on initial render

* grid: dont animate panels on initial render
This commit is contained in:
Alexander Zobnin
2017-12-08 13:49:14 +03:00
committed by Torkel Ödegaard
parent f78f86d0ab
commit e0c173c5af
2 changed files with 58 additions and 27 deletions

View File

@@ -53,3 +53,12 @@
.react-grid-item.react-draggable-dragging.panel {
z-index: $zindex-dropdown;
}
// Disable animation on initial rendering and enable it when component has been mounted.
.react-grid-item.cssTransforms.panel {
transition-property: none;
}
.animated .react-grid-item.cssTransforms.panel {
transition-property: transform;
}