-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathanimate.html
More file actions
42 lines (39 loc) · 871 Bytes
/
Copy pathanimate.html
File metadata and controls
42 lines (39 loc) · 871 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
38
39
40
41
42
<html>
<head>
<meta charset="utf-8">
<title>CSS animations: Example 1</title>
<style type="text/css">
h1 {
-webkit-animation-duration: 3s;
-webkit-animation-name: slidein;
-webkit-animation-iteration-count: infinite;
-webkit-animation-direction: alternate;
-webkit-animation-timing-function: linear;
-moz-animation-duration: 3s;
-moz-animation-name: slidein;
-moz-animation-iteration-count: infinite;
-moz-animation-direction: alternate;
-moz-animation-timing-function: linear;
}
@-webkit-keyframes slidein {
from {
margin-left:100%;
}
to {
margin-left:0%;
}
}
@-moz-keyframes slidein {
from {
margin-left:100%;
}
to {
margin-left:0%;
}
}
</style>
</head>
<body>
<h1>Heading</h1>
</body>
</html>