-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding card hover design by rahul-bhati
- Loading branch information
1 parent
8b89e75
commit fabfd59
Showing
9 changed files
with
103 additions
and
8 deletions.
There are no files selected for viewing
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.
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.
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Rahul-Bhati || Card Hover Effect ⛩</title> | ||
<link rel="stylesheet" href="style.css"> | ||
<link rel="shortcut icon" href="image/fav.png" type="image/x-icon"> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div class="box card_1"> | ||
<img src="image/Forest.png" alt="nature"> | ||
<h3>Forest</h3> | ||
</div> | ||
<div class="box card_1"> | ||
<img src="image/Islands.jpeg" alt="nature"> | ||
<h3>Islands</h3> | ||
</div> | ||
<div class="box card_1"> | ||
<img src="image/Lake.jpeg" alt="nature"> | ||
<h3>Lake</h3> | ||
</div> | ||
<div class="box card_1"> | ||
<img src="image/Mountain.jpeg" alt="nature"> | ||
<h3>Mountain</h3> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* * { | ||
box-sizing: border-box; | ||
} */ | ||
|
||
body { | ||
width: 100%; | ||
height: 100vh; | ||
/* margin-top: 0; */ | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
background: #252f54; | ||
} | ||
|
||
.container { | ||
position: relative; | ||
display: flex; | ||
align-items: center; | ||
cursor: pointer; | ||
border-radius: 30px; | ||
flex-wrap: wrap; | ||
gap: 10px; | ||
} | ||
|
||
.box { | ||
max-width: 300px; | ||
max-height: 400px; | ||
border-radius: 30px; | ||
background: #99a0bc; | ||
box-shadow: rgba(207, 193, 193, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px; | ||
} | ||
|
||
img{ | ||
width: 100%; | ||
height: 100%; | ||
object-fit: cover; | ||
transition: 0.5s; | ||
} | ||
|
||
.box img{ | ||
border-radius: 30px; | ||
} | ||
|
||
.box:hover img{ | ||
transform: translate(0, -70px); | ||
} | ||
|
||
h3{ | ||
display: none; | ||
text-align: center; | ||
transition:0.5s; | ||
font-family:cursive; | ||
} | ||
|
||
.box:hover h3 { | ||
display: block; | ||
transform: translate(0, -50px); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters