Slide in Overlay from the Right


Avatar
Mi Chiamo Valvason Severino
alias Valvasev,
il Webmaster di questo sito

ESEMPIO Css: copia codice 

.container {
position: relative;
width: 50%;
}
.image {
display: block;
width: 100%;
height: auto;
}
.overlay {
position: absolute;
bottom: 0;
left: 100%;
right: 0;
background-color: #008CBA;
overflow: hidden;
width: 0;
height: 100%;
transition: .5s ease;
}
.container:hover .overlay {
width: 100%;
left: 0;
}
.text {
color: white;
font-size: 20px;
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
white-space: nowrap;
}



ESEMPIO HTML: copia codice 

class="container">

<img src="img_avatar.png" alt="Avatar"

class="image">

<div class="overlay">

<div class="text">Hello World</div>

</div>



.. Scarica lo Zip




? © All Rights Reserved - www.isolajava.com ?