Hello,
I created a side panel using Dash. I am trying to add a transition to html.details. I just figured out how to do it in the CSS stylesheet. However the element inside appear before the animation is complete. Does anyone know how to implement this? Should it be done using a dash callback or in the stylesheet?
Here is my CSS code for the animation:
.pane-buttons {
margin-top: 5px;
margin-bottom: 5px;
/*border: 1px solid #CFD8DC;*/
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
transition: height 1s ease;
}
.pane-buttons:not([open]) { height: 2em }
.pane-buttons[open] { height: 6em }
Thanks,
Vivek