I am trying to show or hide the title of sidepanel while collapsing it to width:50%
I am using display: block to display:none; Somehow I am not able to use the animation on it
Here is the code I am using
.fade-in {
  animation: fade-in 0.5s ease-in-out both;
}
.fade-out {
  animation: fade-out 0.6s ease-in-out both;
}
@keyframes fade-in {
  0% {
    opacity: 1;
    display: block;
  }
  100% {
    opacity: 0;
    display: none;
  }
}
@keyframes fade-out {
  0% {
    opacity: 0;
    display: none;
  }
  100% {
    opacity: 1;
    display: block;
  }
}
Any idea why display is not working
 
     
     
    