Skip to content

Commit 5044ce1

Browse files
author
NaTi Jhon
committed
btn5 done
1 parent 91ccf2d commit 5044ce1

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

5. Top 5 btns/btn4/index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Button Three</title>
7+
<link rel="shortcut icon" href="../assets/icons8-button-96.png" type="image/x-icon">
8+
<link rel="stylesheet" href="style.css">
9+
<link rel="stylesheet" href="../assets/resets.css">
10+
</head>
11+
<body>
12+
<div class="conatiner">
13+
<a href="">Hover Me</a>
14+
</div>
15+
</body>
16+
</html>

5. Top 5 btns/btn4/style.css

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
a{
2+
padding: 1rem 4rem;
3+
background: rgba(17, 17, 137, 0.824);
4+
color: #fff;
5+
font-size: 22px;
6+
text-transform: uppercase;
7+
position: relative;
8+
cursor: pointer;
9+
text-decoration: none;
10+
transition: all 0.3s;
11+
}
12+
13+
a::before{
14+
content: "";
15+
position: absolute;
16+
width: 24px;
17+
height: 24px;
18+
top: -10px;
19+
left: -10px;
20+
/* bg was added for test purpose only */
21+
/* background: teal; */
22+
border-top: 4px solid darkblue;
23+
border-left: 4px solid darkblue;
24+
transition: all 0.222s;
25+
}
26+
27+
a:hover::before, a:hover::after{
28+
height: 100%;
29+
width: 100%;
30+
}
31+
32+
33+
a::after{
34+
content: "";
35+
position: absolute;
36+
width: 24px;
37+
height: 24px;
38+
right: -10px;
39+
bottom: -10px;
40+
border-bottom: 4px solid crimson;
41+
border-right: 4px solid crimson;
42+
transition: all 0.222s;
43+
}

0 commit comments

Comments
 (0)