This code is currently set up to slide from right to left.
#panel {
position: absolute;
right: 0;
width: 180px;
top: 0;
bottom: 0;
box-shadow: 0px 0px 15px black;
background: white;
padding: 10px;
-webkit-transform-origin: 100% 50%;
-webkit-transform: scaleX(0.00001);
-webkit-transition: -webkit-transform 0.2s ease-in-out;
outline: 0;
}
#panel:target {
-webkit-transform: scaleX(1);
}
<div><a href="#panel">☰</a></div>
<p><a id="panel" href="#">This is the side panel.</a></p>
Now, I would like to change it to slide from left to right. I attempted changing 'right: 0' to 'left', but it resulted in sliding from the center to the left. Despite trying various solutions found in different posts, I couldn't get it to work. Can anyone provide me with assistance? Thank you.