Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammad-umaair authored Aug 21, 2023
1 parent 47253eb commit 74b6847
Show file tree
Hide file tree
Showing 3 changed files with 212 additions and 0 deletions.
174 changes: 174 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: sans-serif;
color: #fff;
}

html {
font-size: 62.5%;
}

body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #222;
overflow-y: hidden;
}
.container {
height: 470px;
width: 350px;
border: 2px solid;
border-left-color: #0cf;
border-right-color: #0cf;
border-top-color: #ec45f2;
border-bottom-color: #ec45f2;
border-radius: 5px;
display: flex;
justify-content: space-around;
align-items: center;
flex-direction: column;
position: relative;
}
.container .image-section {
height: 100%;
width: 100%;
background: linear-gradient(#0cf, #ec45f2, #0cf, #ec45f2);
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
transition: 0.6s ease;
overflow: hidden;
}
.container:hover .image-section{
height: 280px;
width: 280px;
top: 5%;
border-radius: 50%;
}
img {
width: 250px;
border-radius: 50%;
background: #021a2f;
}
.text-content {
text-align: center;
color: #fff;
font-weight: 500;
display: flex;
flex-direction: column;
align-items: center;
position: absolute;
top: 40%;
opacity: 0;
transition: .5s;
}
.container:hover .text-content{
opacity: 1;
transition-delay: .5s;
}
.text-content span:nth-child(1) {
letter-spacing: 1px;
font-size: 32px;
animation: TopSlide 1s ease forwards;
opacity: 0;
}
.container:hover span:nth-child(1) {
animation: TopSlide 1s ease forwards;
opacity: 0;
}

@keyframes TopSlide {
0% {
transform: translateY(200px);
opacity: 0;
filter: blur(5px);
}
100% {
transform: translateY(0px);
opacity: 1;
filter: blur(0);
}
}

.text-content span:nth-child(2) {
letter-spacing: 1px;
font-size: 18px;
margin-bottom: 10px;
}
.container:hover span:nth-child(2) {
animation: TopSlide 1s ease forwards;
opacity: 0;
animation-delay: 0.2s;
}
.text-content p {
font-size: 13px;
max-width: 300px;
margin-bottom: 5px;
}
.container:hover p {
animation: TopSlide 1s ease forwards;
opacity: 0;
animation-delay: 0.4s;
}
.btn {
height: 35px;
width: 100px;
font-size: 15px;
font-weight: 500;
background: #222;
color: #0cf;
border: 2px solid #0cf;
cursor: pointer;
margin-bottom: 20px;
border-radius: 5px;
transition: 0.5s;
text-decoration: none;
}
.container:hover .btn {
animation: TopSlide 1s ease forwards;
opacity: 0;
animation-delay: 0.6s;
}

.btn:hover {
background: #0cf;
color: #222;
box-shadow: 0 0 10px;
}
.social-media {
display: flex;
}
.social-media i {
cursor: pointer;
height: 40px;
width: 40px;
border: 2px solid #0cf;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
font-size: 30px;
color: #0cf;
margin-left: 20px;
transition: 0.4s;
}

.container:hover .social-media i {
animation: TopSlide 1s ease forwards;
opacity: 0;
animation-delay: 0.8s;
}
.social-media i:hover {
box-shadow: 0 0 10px #0cf;
color: #222;
background: #0cf;
}
Binary file added images/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Animated Profile Card Design using HTML & CSS</title>
<link rel="stylesheet" href="./css/style.css" />
<link
href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css"
rel="stylesheet"
/>
</head>
<body>
<div class="container">
<div class="image-section">
<img src="./images/1.jpg" alt="" />
</div>
<div class="text-content">
<span>Umair Khan</span>
<span>Backend Developer</span>
<p>
I'm a Laravel developer with expertise in front-end development. I
have a strong foundation in HTML, CSS, and JavaScript, and I'm
proficient in using Bootstrap and multiple frameworks like Vue.js and
Alpine.js to create responsive and interactive web applications.!
</p>
<a class="btn" href="https://github.com/MuhammadUmaair">Read More</a>

<div class="social-media">
<i class="bx bxl-instagram-alt"></i>
<i class="bx bxl-facebook-circle"></i>
<i class="bx bxl-twitter"></i>
<i class="bx bxl-vk"></i>
</div>
</div>
</div>
</body>
</html>

0 comments on commit 74b6847

Please sign in to comment.