-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCSS-transform-skew.html
40 lines (38 loc) · 986 Bytes
/
CSS-transform-skew.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS Transform: Skew</title>
<style>
.box{
width: 50px;
height: 50px;
border: 1px solid white;
background: greenyellow;
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
animation-name: animated;
animation-duration: 2s;
animation-iteration-count: infinite;
/* animation: animated 2s infinite; */
}
@keyframes animated{
50%{
transform:skewX(190deg);
background: steelblue;
}
100%{
transform:skewY(190deg);
background: violet;
}
}
</style>
</head>
<body>
<div class="box">
</div>
</body>
</html>