-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbutton_ani.html
More file actions
47 lines (44 loc) · 1.04 KB
/
button_ani.html
File metadata and controls
47 lines (44 loc) · 1.04 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
<!DOCTYPE html>
<html lang="ko">
<head>
<title>버튼</title>
<style>
.btn {
border: 4px solid palevioletred;
border-radius: 4px;
padding: 30px 60px;
background: none;
color: palevioletred;
font-size: 32px;
position: relative;
overflow: hidden;
cursor: pointer;
transition: all .3s;
}
.btn:hover {
color: white;
border: 4px solid firebrick;
}
.btn:before {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
background: palevioletred;
z-index: -1;
border-radius: 100px 100px 0px 0px;
height: 0px;
transition: all .3s;
}
.btn:hover:before {
height: 120px;
background: firebrick;
}
</style>
</head>
<body>
<button class="btn">Click Me!!</button>
</body>
</html>