-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbtn_hover.html
More file actions
33 lines (33 loc) · 866 Bytes
/
btn_hover.html
File metadata and controls
33 lines (33 loc) · 866 Bytes
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
<html>
<head>
<title>BTN HOver With befor</title>
<style>
body{
background-color: black;
}
button{
/* height: ; */
background-color: transparent;
color: white;
border: none;
font-size: 30px;
}
button::after{
content: '';
display: block;
height: 10px;
width: 100%;
background-color: goldenrod;
transform: scaleX(0);
transform-origin: left;
transition-duration: 0.5s;
}
button:hover::after{
transform: scaleX(1);
}
</style>
</head>
<body>
<button>Click me</button>
</body>
</html>