I have this code, I just need to make the modal enter the right side of the screen (right - left) the way it does on the contrary
CSS
.overlay{
height: 100%;
width: 0;
position: fixed;
z-index: 1;
left: 0;
top: 0;
background-color: #944743;
background-color: #944743;
overflow-x: hidden;
transition: 1s;
}
JS
function openNav() {
document.getElementById("Medium").style.width = "100%";
}
function closeNav() {
document.getElementById("Medium").style.width = "0%";
}
HTML
<button onclick="openNav()" class="btn btn-primary "><i class="fas fa-arrow-left"></i> Go somewhere</button>
<div id="Medium" class="overlay">
<!-- Button to close the overlay navigation -->
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<!-- Overlay content -->
<div class="overlay-content">
<h1>hola mundo</h1>
</div>
</div>