Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new display Card #72

Merged
merged 6 commits into from
Jan 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
11 changes: 11 additions & 0 deletions Product_Display_Cards/Product_Card_04/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Image Hover Display Card

<h3> Tech Stack Used <img src = "https://media2.giphy.com/media/QssGEmpkyEOhBCb7e1/giphy.gif?cid=ecf05e47a0n3gi1bfqntqmob8g9aid1oyj2wr3ds3mg700bl&rid=giphy.gif" width = 32px> </h3>
<p align ="left">
<a href="https://www.w3.org/html/" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/html5/html5-original-wordmark.svg" alt="html5" width="40" height="40"/> </a>
<a href="https://www.w3schools.com/css/" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/css3/css3-original-wordmark.svg" alt="css3" width="40" height="40"/> </a>
</p>

### Preview

https://user-images.githubusercontent.com/64855541/148549534-640bd587-e82c-4072-9d2c-251a12d7afd4.mp4
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions Product_Display_Cards/Product_Card_04/code/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Image_Hover_Product_Card</title>
</head>
<body>
<div class="Parent_Container">
<div class="container">
<div class="box">
<img src="/Product_Display_Cards/Product_Card_04/assets/img1.png" alt="person">
</div>
<div class="box">
<img src="/Product_Display_Cards/Product_Card_04/assets/img2.png" alt="person">
</div>
</div>
</div>
</body>
</html>
59 changes: 59 additions & 0 deletions Product_Display_Cards/Product_Card_04/code/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

.Parent_Container {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #262626;
}
.container {
position: relative;
display: flex;
-webkit-box-reflect: below 1px linear-gradient(transparent,transparent,transparent,#0004);
}
.container .box {
position: relative;
width: 320px;
height: 400px;
margin: 0 20px;
border-radius: 20px;
background: linear-gradient(45deg, #2da2ff 25%, #444 25%, #444 50%, #2da2ff 50%, #2da2ff 75%, #444 75%, #444 100%);
background-size: 40px 40px;
filter: grayscale(1);
animation: animateBg 0.5s linear infinite;
animation-play-state: paused;
transition: filter 1s;
display: flex;
justify-content: center;
}
.container .box:nth-child(2) {
background: linear-gradient(135deg, #ff61ae 25%, #444 25%, #444 50%, #ff61ae 50%, #ff61ae 75%, #444 75%, #444 100%);
background-size: 40px 40px;
}
.container .box:hover {
animation-play-state: running;
filter: grayscale(0);
}

@keyframes animateBg {
0% {
background-position: 0;
}
100% {
background-position: 40px;
}
}
.container .box img {
position: absolute;
bottom: 0;
height: 90%;
transition: height 0.5s;
}
.container .box:hover img {
height: 480px;
}