-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlogoanimation.html
More file actions
57 lines (44 loc) · 1.32 KB
/
logoanimation.html
File metadata and controls
57 lines (44 loc) · 1.32 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<style>
.logoAnimation
{
width: 0.5em;
height: 2em;
border: 1px saddlebrown solid;
overflow: hidden;
}
.logoAnimation div
{
height: 0.2em;
width: 10px;
border: 0px solid;
margin: 2px;;
background-color: slateblue;
position: relative;
}
.div1{ animation: zigZag1 1s infinite alternate ; }
.div2{ animation: zigZag2 1s infinite alternate ; }
.div3{ animation: zigZag3 1.2s infinite alternate ; }
.div4{ animation: zigZag4 1.1s infinite alternate ; }
@keyframes zigZag1 { from { margin-left: 30%;} to { margin-left: 60%; }}
@keyframes zigZag2 { from { margin-left: 80%;} to { margin-left: 0%; }}
@keyframes zigZag3 { from { margin-left: 70%; }to{ margin-left: 10%; }}
@keyframes zigZag4 { from { margin-left:-10%; }to{ margin-left: 80%; }}
}
</style>
<div class="logoAnimation">
<div class="div1"></div>
<div class="div2"></div>
<div class="div3"></div>
<div class="div4"></div>
</div>
</body>
</html>