This repository was archived by the owner on Sep 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
73 lines (67 loc) · 1.67 KB
/
index.html
File metadata and controls
73 lines (67 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://fonts.googleapis.com/css?family=Montserrat:100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic"
rel="stylesheet"
/>
<title>spacex button hover effect</title>
<style>
* {
margin: 0;
padding: 0;
font-size: 1.2rem;
font-family: "Montserrat";
font-weight: 500;
letter-spacing: 0.5rem;
text-transform: uppercase;
box-sizing: border-box;
}
body {
height: 100vh;
background: rgb(31, 28, 28);
display: flex;
justify-content: center;
align-items: center;
}
button {
width: 20rem;
height: 6rem;
margin: 1rem;
border: 1px solid #fff;
background: transparent;
color: #fff;
cursor: pointer;
border-radius: 0;
position: relative;
}
span {
width: 100%;
height: 100%;
background: #fff;
position: absolute;
left: 0;
top: 0;
}
.css {
transform: scaleY(0);
transform-origin: top;
transition: transform 0.5s;
z-index: -1000;
}
button:hover .css {
transform: scaleY(1);
transform-origin: bottom;
}
button:hover {
color: #000;
}
</style>
</head>
<body>
<button>asity.tech<span class="css"></span></button>
</body>
</html>