-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
71 lines (70 loc) · 1.45 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Omri.js</title>
<link rel="stylesheet" href="css/style.css">
<style>
@keyframes mover {
0%, 100% { left: 0px; }
50% { left: calc(100% - 100px); }
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: Helvetica;
font-weight: 100;
}
.animationBlock {
border: 1px solid black;
margin: 20px;
padding: 10px;
max-width: 800px;
width: 90%;
}
.animatedBlock {
height: 100px;
width: 100px;
background: red;
color: white;
text-align: center;
padding-top: 10px;
font-size: 20px;
position: relative;
}
.animator {
animation-name: mover;
animation-duration: 7s;
animation-iteration-count: infinite;
animation-direction: alternate;
animation-timing-function: linear;
animation-fill-mode: forwards;
animation-delay: 0s;
animation-play-state: paused;
transition: all 200ms ease-in-out;
}
.animate-on .animator {
animation-play-state: running;
background: green;
transition: all 200ms ease-in-out;
}
</style>
</head>
<body class="js test">
<h1>Hello World</h1>
<div class="demo">
<h2>CSS Animation Demo</h2>
<div class="animationBlock">
<div class="animatedBlock animator">Animated Block</div>
</div>
</div>
<script src="js/omri.js"></script>
<script>
omri({
//animationLabel : 'Animate',
// defaultState : true
});
</script>
</body>
</html>