<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Card Reveal Effect</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #f0f0f0;
margin: 0;
}
.container {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.card {
position: relative;
width: 300px;
height: 300px;
margin: 20px;
background-color: #333;
border-radius: 20px;
overflow: hidden;
transition: transform 0.5s;
}
.card img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 20px;
transform: translateY(100%);
transition: transform 0.5s;
}
.card .content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
color: #fff;
font-weight: bold;
font-size: 24px;
}
.card:hover img {
transform: translateY(0);
}
.card:hover .content {
transform: translate(-50%, -200%);
}
</style>
</head>
<body>
<div class="container">
<div class="card">
<img src="https://codezillaye.com/wp-content/uploads/2024/06/graphic.jpg" alt="Codezilla Image">
<div class="content">codezilla</div>
</div>
</div>
</body>
</html>