20 lines
407 B
CSS
20 lines
407 B
CSS
.image:hover .overlay {
|
|
opacity: 0; }
|
|
|
|
.overlay {
|
|
transition: opacity .5s ease;
|
|
opacity: 1;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(255, 255, 255, 0.5);
|
|
/* Voile clair */
|
|
display: flex;
|
|
justify-content: center;
|
|
/* Centre horizontalement le texte */
|
|
align-items: center;
|
|
/* Centre verticalement le texte */
|
|
text-align: center; }
|