-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
49 lines (44 loc) · 1.36 KB
/
test.html
File metadata and controls
49 lines (44 loc) · 1.36 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
#loginbtn {
color: white;
border: 3px solid hsl(208, 72%, 39%);
border-radius: 15px;
width: 200px;
display: inline-block;
text-decoration: none;
cursor: pointer;
position: relative;
isolation: isolate;
}
#loginbtn::after {
content: "";
border-radius: 20px;
position: absolute;
z-index: -1;
background: red;
inset: 0;
scale: 0 1;
transform-origin: right;
transition: scale 450ms;
}
/* #loginbtn:hover{
cursor: pointer;
background: lightblue;
} */
#loginbtn:hover::after,
#loginbtn:focus-visible::after {
transform-origin: left;
scale: 1 1;
}
</style>
</head>
<body bgcolor="black">
<center><div id="loginbtn">ANIMATION</div></center>
</body>
</html>