I am new to CSS. Below is my requirement. I need to open a left panel on the click of a button,
Below is the working example in codepen. https://codepen.io/angularjai/pen/eYgzXdy
table, th, td {
border: 1px solid black;
}
#id {
width:20%;
}
<html !DocType>
<head>
<title> Test </title>
</head>
<body>
<button>Click Me</button>
<hr>
<div id=leftside>
<p> Some contents here
</div>
<div >
<table width=80%>
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Age</th>
</tr>
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
</table>
</div>
</body>
</html>
Requirement. I need to open a left side div. When opening and closing the transition should be smooth.
Please help