Skip to content

Commit 4fc02ee

Browse files
Merge pull request #5 from MuhammadShakir-dev/MuhammadShakir-dev-patch-5
💡 Create a Fancy Button using Transform & Transition.
2 parents 48cbf34 + 1b8d019 commit 4fc02ee

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

Fancy_Button.html

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8+
<title>Button</title>
9+
<!--Google Fonts Link-->
10+
<link rel="preconnect" href="https://fonts.googleapis.com">
11+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
12+
<link
13+
href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,400;0,500;0,700;1,300&display=swap"
14+
rel="stylesheet">
15+
16+
<!--Style tag-->
17+
<style>
18+
body {
19+
padding: 0%;
20+
margin: 0%;
21+
background-color: rgb(1, 53, 114);
22+
font-family: 'Poppins';
23+
display: flex;
24+
align-items: center;
25+
justify-content: center;
26+
height: 100vh;
27+
}
28+
29+
button {
30+
width: 160px;
31+
height: 70px;
32+
margin: auto;
33+
padding: 10px;
34+
background-color: rgb(1, 53, 114);
35+
color: orange;
36+
border-color: orange;
37+
transition: all 0.5s ease;
38+
}
39+
40+
button:hover {
41+
cursor: pointer;
42+
color: white;
43+
border-color: greenyellow;
44+
box-shadow: rgb(207, 255, 117) 0px 20px 30px -10px;
45+
transform: translateY(-0.25em);
46+
}
47+
</style>
48+
49+
</head>
50+
51+
<body>
52+
<button>Hover me!</button>
53+
</body>
54+
55+
</html>

0 commit comments

Comments
 (0)