Skip to content
Open
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
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.
54 changes: 54 additions & 0 deletions tasks-by-users/1khansaad/02-card-hover-project/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!DOCTYPE html>
<html>
<head>
<title>card hover effect</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="container">
<div class="cards">
<div class="face face1">
<div class="content">
<img src="play store.png" alt="play store icon" width="100px">
<h2>Play store</h2>
</div>
</div>
<div class="face face2">
<div class="content">
<p>Google Play, also branded as the Google Play Store and formerly Android Market, is a digital distribution service operated and developed by Google. It serves as the official app store for certified devices.</p>
<a href="#">Read More</a>
</div>
</div>
</div>
<div class="cards">
<div class="face face1">
<div class="content">
<img src="gmail.png" alt="gmail icon" width="100px">
<h2>Gmail</h2>
</div>
</div>
<div class="face face2">
<div class="content">
<p>Google Play, also branded as the Google Play Store and formerly Android Market, is a digital distribution service operated and developed by Google. It serves as the official app store for certified devices.</p>
<a href="#">Read More</a>
</div>
</div>
</div>
<div class="cards">
<div class="face face1">
<div class="content">
<img src="google photos.png" alt="google photos icon" width="100px">
<h2>Google photos</h2>
</div>
</div>
<div class="face face2">
<div class="content">
<p>Google Play, also branded as the Google Play Store and formerly Android Market, is a digital distribution service operated and developed by Google. It serves as the official app store for certified devices.</p>
<a href="#">Read More</a>
</div>
</div>
</div>
</div>
</body>
</html>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
62 changes: 62 additions & 0 deletions tasks-by-users/1khansaad/02-card-hover-project/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.container {
height: 100vh;

display: flex;
text-align: center;
align-items: center;
justify-content: space-around;
Copy link
Contributor

@faran4engg faran4engg Jan 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

group proprties !

  • for all .css files

}
.cards {
width: 25%;
display: flex;
flex-wrap: wrap;
min-width: 300px;
}
.container .cards .face1 img {
margin: 15px;
}
.container .cards .face1 img:hover {
width: 105px;
transition: 0.2s;
}
.container .cards .face1 {
background: rgb(177, 157, 157);
width: 100%;
z-index: 1;
transform: translateY(100px);
height: 33vh;
}
.container .cards:hover .face1 {
transform: translateY(0);
transition: 0.5s;
}
.container .cards .face2 {
transform: translateY(-106px);
height: 33vh;
background: rgb(221, 33, 33);
}
.container .cards:hover .face2 {
transform: translateY(0);
}
.container .cards .face2 a {
text-decoration: none;
border: 1px solid black;
color: black;
padding: 1%;
}
.container .cards .face2 p {
text-align: left;
padding-left: 10px;
font-size: 1.1em;
}
.container .cards .face2 a:hover {
background: black;
color: white;
box-shadow: 2px 2px #333;
transition: 0.3s;
}