body{
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: rgb(1, 33, 33);
font-family: Arial, Helvetica, sans-serif;
}
.container{
display: flex;
gap: 15px;
}
.card{
background-color: #504d4d;
width: 150px;
height: 150px;
transition: all 0.3s ease;
border-radius: 10px;
overflow: hidden;
color: white;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
position: relative;
text-align: center;
}
.card:hover{
width: 200px;
height: 200px;
background-color: #555;
}
.card .content{
opacity: 0;
transition: opacity 0.3s ease;
}
.card:hover .content{
opacity: 1;
}
.card .title{
font-size: 1.5em;
font-weight: bold;
}
.card .decription{
font-size: 1em;
opacity: 0;
}
.card:hover .decription{
opacity: 1;
}
</style>
Card-1
More Info
Card-2
More Info
Card-3
More Info