-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTransform.html
More file actions
37 lines (31 loc) · 820 Bytes
/
Transform.html
File metadata and controls
37 lines (31 loc) · 820 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
<!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>Transform Css</title>
<style>
.rect {
background-color: #5f9ee5;
border: 10px solid #00A8A8;
height: 40px;
width: 60px;
transform: translate(10px, 20px) ;
/* animation: slide 5s linear infinite; */
animation: slide linear 1s infinite alternate;
}
@keyframes slide{
from{
transform: translate(-20px);
}
to{
transform: translate(20px);
}
}
</style>
</head>
<body>
<div class="rect"></div>
</body>
</html>