-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcss3.html
More file actions
43 lines (38 loc) · 978 Bytes
/
Copy pathcss3.html
File metadata and controls
43 lines (38 loc) · 978 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
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<style>
.b {
width: 200px;
height: 200px;
background: hotpink;
color: white;
font: 15px bold;
position: relative;
}
.b:before {
pointer-events: none;
position: absolute;
content: '';
height: 100%;
width: 100%;
background: red;
-webkit-transition-duration: 0.3s;
transition-duration: 0.3s;
-webkit-transform: skewX(10deg) rotateY(90deg);
-webkit-transition-property: width transform;
transition-property: width transform opacity;
}
.b:hover:before {
-webkit-transform: rotateY(0deg);
background: red;
opacity: .5;;
}
</style>
</head>
<body>
<div class="b">asdasdasdasda</div>
</body>
</html>