Is it possible to create the effect below without the browser creating scroll bars? (IE10 +)
function trocaEfeito(){
document.querySelector('.efeito').classList.toggle('ativo')
}
*{
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
.conteudo{
background: linear-gradient(to right, #000140, #0072BD);
}
.efeito{
position: absolute;
top: 0;
left: 0;
transform: translateY(100%);
transition: transform .6s ease;
background: linear-gradient(to right, #000000, #000140);
display: flex;
align-items: center;
justify-content: center;
}
.efeito.ativo{
transform: translateY(0);
}
button{
height: 2rem;
width: 4rem;
margin: 2rem;
}
<html>
<body>
<div class='conteudo'>
<button onclick='trocaEfeito()'>clique</button>
</div>
<div class='efeito'>
<button onclick='trocaEfeito()'>fechar</button>
</div>
</body>
</html>