-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclippathcss.html
71 lines (64 loc) · 1.46 KB
/
clippathcss.html
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
<!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" />
<title>Clip Path CSS</title>
<style>
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
font-family: monospace;
height: 100vh;
overflow: hidden;
background-color: #fdbf0465;
font-size: 1.2rem;
}
.container {
width: 440px;
/* background-color: white; */
border-radius: 10px;
}
.inner {
padding: 2rem;
background-color: #fd5f51;
border-radius: inherit;
color: white;
clip-path: circle(10% at 91% 22%);
transition: all 0.5s ease-in-out;
cursor: pointer;
}
.inner:hover {
clip-path: circle(75%);
background-color: #38c76a;
}
.inner:hover span {
color: #38c76a;
}
h1 {
margin: 0;
}
p {
font-weight: 500;
}
span {
float: right;
padding-right: 1px;
/* transition: all 0.006s; */
}
</style>
</head>
<body>
<div class="container">
<div class="inner">
<span>A</span>
<h1>Hi,</h1>
<p>my name is Aadil Mugal I am a full-stack web devloper</p>
</div>
</div>
</body>
</html>