index.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>Hancie e-Learning Studio</title>
<!-- Font Awesome Icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/
ajax/libs/font-awesome/5.15.4/css/all.min.css"/>
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=
Poppins:wght@500&display=swap"rel="stylesheet"/>
</head>
<body>
<div class="wrapper">
<div class="container">
<div class="img-wrapper"><img src="Hancie-Phago.jpg" /></div>
<div class="details">
<h3>Hancie Phago</h3>
<h5>Software Developer</h5>
<div class="social-icons">
<i class="fab fa-facebook-f"></i>
<i class="fab fa-twitter"></i>
<i class="fab fa-instagram"></i>
</div>
</div>
</div>
<div class="container">
<div class="img-wrapper"><img src="Hancie-Phago.jpg" /></div>
<div class="details">
<h3>Hancie Phago</h3>
<h5>Software Developer</h5>
<div class="social-icons">
<i class="fab fa-facebook-f"></i>
<i class="fab fa-twitter"></i>
<i class="fab fa-instagram"></i>
</div>
</div>
</div>
<div class="container">
<div class="img-wrapper"><img src="Hancie-Phago.jpg" /></div>
<div class="details">
<h3>Hancie Phago</h3>
<h5>Software Developer</h5>
<div class="social-icons">
<i class="fab fa-facebook-f"></i>
<i class="fab fa-twitter"></i>
<i class="fab fa-instagram"></i>
</div>
</div>
</div>
<div class="container">
<div class="img-wrapper"><img src="Hancie-Phago.jpg" /></div>
<div class="details">
<h3>Hancie Phago</h3>
<h5>Software Developer</h5>
<div class="social-icons">
<i class="fab fa-facebook-f"></i>
<i class="fab fa-twitter"></i>
<i class="fab fa-instagram"></i>
</div>
</div>
</div>
</div>
<style>
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
background-color: #000000;
}
.wrapper {
padding: 30px 0;
min-height: 100vh;
display: grid;
place-items: center;
gap: 20px;
}
.container {
height: 100vh;
width: 100%;
padding: 12px;
position: relative;
background: linear-gradient(#529fe9 50%,
#1e202b 50%) 0 100% no-repeat;
background-size: 100% 200%;
transition: 0.7s;
overflow: hidden;
}
.img-wrapper {
height: 100%;
width: 100%;
position: relative;
}
.container img {
width: 100%;
height: 100%;
}
.container:hover {
background-position: 0 0;
}
.details {
position: absolute;
background-color: #ffffff;
color: #000000;
width: 80%;
text-align: center;
padding: 10px 0;
bottom: -100px;
margin: auto;
left: 0;
right: 0;
transition: 0.7s;
}
h3,
h5 {
font-family: "Poppins", sans-serif;
font-weight: 500;
}
h3 {
letter-spacing: 1px;
font-size: 14px;
}
h5 {
font-size: 12px;
}
.social-icons {
width: 100%;
display: flex;
justify-content: space-around;
margin: 10px 0 5px 0;
}
.container:hover .details {
bottom: 30px;
}
.img-wrapper:after {
position: absolute;
content: "";
height: 100%;
width: 100%;
background-color: #000000;
top: 0;
left: 0;
opacity: 0;
transition: 0.7s;
}
.container:hover .img-wrapper:after {
opacity: 0.5;
}
i:hover {
color: #529fe9;
cursor: pointer;
}
@media screen and (min-width: 992px) {
.wrapper {
grid-template-columns: repeat(4, 1fr);
}
.container {
height: 25rem;
width: 20rem;
}
}
</style>
</body>
</html>