Skip to content

Commit 665b550

Browse files
author
NaTi Jhon
committed
BackUP
1 parent ada29b3 commit 665b550

File tree

12 files changed

+139
-0
lines changed

12 files changed

+139
-0
lines changed
2.96 KB
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
*{
2+
padding: 0;
3+
margin: 0;
4+
box-sizing: border-box;
5+
}
6+
7+
body{
8+
background-color: rgb(55, 58, 61);
9+
font-family: sans-serif;
10+
}
11+
.conatiner{
12+
display: flex;
13+
justify-content: center;
14+
align-items: center;
15+
height: 100vh;
16+
}
17+
18+
19+
a:active{
20+
filter: brightness(80%);
21+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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 One</title>
7+
<link rel="shortcut icon" href="../assets/icons8-button-96.png" type="image/x-icon">
8+
<link rel="stylesheet" href="style.css">
9+
</head>
10+
<body>
11+
<div class="conatiner">
12+
<a href="">Hover Me</a>
13+
</div>
14+
</body>
15+
</html>

β€Ž5. Top 5 btns/btn1/style.cssβ€Ž

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
a{
2+
text-decoration: none;
3+
color: antiquewhite;
4+
border: 2px solid antiquewhite;
5+
padding: 2rem 5rem;
6+
position: relative;
7+
overflow: hidden;
8+
transition: all 0.5s;
9+
}
10+
11+
a:before{
12+
content: "DOWNLOAD";
13+
font-weight: bold;
14+
color: #000;
15+
position: absolute;
16+
left: 0;
17+
top: 0;
18+
height: 100%;
19+
width: 100%;
20+
background:antiquewhite ;
21+
transform: translateX(-270px);
22+
transition: all 0.5s;
23+
/* center */
24+
display: flex;
25+
justify-content: center;
26+
align-items: center;
27+
}
28+
29+
30+
a:hover::before{
31+
transform: translateX(0);
32+
}
33+
a:active{
34+
filter: brightness(50%);
35+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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 One</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+
<link rel="stylesheet" href="../assets/resets.css">
11+
</head>
12+
<body>
13+
<div class="conatiner">
14+
<a href="">Hover Me</a>
15+
</div>
16+
</body>
17+
</html>

β€Ž5. Top 5 btns/btn2/style.cssβ€Ž

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
2+
a{
3+
padding:2rem 3rem ;
4+
text-transform: uppercase;
5+
background-color: blueviolet;
6+
color: #fff;
7+
font-size: 1.5rem;
8+
position: relative;
9+
text-decoration: none;
10+
}
11+
12+
a::before{
13+
content: "button";
14+
position: absolute;
15+
top: 0;
16+
left: 0;
17+
width: 100%;
18+
height: 100%;
19+
background: crimson;
20+
/* Center the content */
21+
display: flex;
22+
justify-content: center;
23+
align-items: center;
24+
/* Transform */
25+
transform: rotateX(270deg);
26+
transform-origin: top;
27+
transition: all 0.5s;
28+
}
29+
30+
31+
a::after{
32+
content: "button";
33+
position: absolute;
34+
top: 0;
35+
left: 0;
36+
width: 100%;
37+
height: 100%;
38+
background: rgb(14, 231, 14);
39+
/* Center it */
40+
display: flex;
41+
justify-content: center;
42+
align-items: center;
43+
transform: rotateX(270deg);
44+
transform-origin: top;
45+
transition: all 0.5s;
46+
transition-delay: 0.25s;
47+
}
48+
49+
a:hover::before, a:hover::after{
50+
transform: rotateX(0);
51+
}

β€Ž5. Top 5 btns/btn3/index.htmlβ€Ž

Whitespace-only changes.

β€Ž5. Top 5 btns/btn3/style.cssβ€Ž

Whitespace-only changes.

β€Ž5. Top 5 btns/btn4/index.htmlβ€Ž

Whitespace-only changes.

β€Ž5. Top 5 btns/btn4/style.cssβ€Ž

Whitespace-only changes.

0 commit comments

Comments
Β (0)