I have a <table>
inside of a <div>
and I wanted my <div>
to scale accordingly to my <table>
. This <div>
will only appear when I clicked on a button. When appearing, there should be a sliding transition. However, the transition disappears after I added display: table;
to my CSS.
input.toggle ~ div
{
transition: .6s all cubic-bezier(0.730, -0.485, 0.145, 1.620);
}
input.toggle:checked ~ div
{
display: table;
}
The effect I am trying to apply is in this link: http://demosthenes.info/blog/506/HTML5-Window-Toggle-Events-In-Pure-CSS3