-
Notifications
You must be signed in to change notification settings - Fork 0
/
css_transform.html
76 lines (69 loc) · 1.4 KB
/
css_transform.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
72
73
74
75
76
<!DOCTYPE html>
<html lang="ja" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8">
<title>Transform</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="description" lang="ja" xml:lang="ja" content="">
<meta name="keywords" lang="ja" xml:lang="ja" content="">
<link href="https://necolas.github.io/normalize.css/3.0.2/normalize.css" rel="stylesheet">
<style>
ul{
list-style-type: none;
display: flex;
width: 100%;
background: linear-gradient(
53deg,
#fcffcc,
#ffcfff
);
padding: 10px 5%;
}
li{
padding: 10px;
font-size:15px;
color:#555;
}
li:hover{
transform: scale(1.2);
}
.test1 {
width: 70%;
height: 100px;
margin: 50px auto;
background: linear-gradient(
53deg,
#ccfffc,
#ffcccf
);
}
.test1:hover{
transform:scale(1.1);/* 1.1times */
transform: skewX(-24deg); /* X */
}
.test2 {
width: 70%;
height: 100px;
margin: 50px auto;
background: linear-gradient(
53deg,
#ffcccf,
#ccfffc
);
}
.test2:hover{
transform:scale(1.1);/* 1.1times */
transform: skewY(10deg); /* Y */
}
</style>
</head>
<body>
<ul>
<li>list1</li>
<li>list2</li>
<li>list3</li>
</ul>
<div class="test1"></div>
<div class="test2"></div>
</body>
</html>