Skip to content
Prev Previous commit
Next Next commit
Fix gap left by hidden containers
  • Loading branch information
aloyr committed Sep 19, 2017
commit 074ad9c00cb1a279eb4657f93b229ff0c615cd6b
10 changes: 5 additions & 5 deletions src/vis-physical/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -219,19 +219,19 @@
}

@keyframes hide {
0% { opacity: 1; transform: scale(1); max-height: 500px; }
100% { opacity: 0; transform: scale(0); max-height: 0; }
0% { opacity: 1; transform: scale(1); max-height: 500px; }
100% { opacity: 0; transform: scale(0); max-height: 0; margin: 0; }
}

@keyframes show {
0% { opacity: 0; transform: scale(0); max-height: 0; }
0% { opacity: 0; transform: scale(0); max-height: 0; margin: 0; }
100% { opacity: 1; transform: scale(1); max-height: 500px; }
}

.hide {
#vis-physical .container.hide {
animation: hide .5s forwards;
}

.show {
#vis-physical .container.show {
animation: show .5s forwards;
}