-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcss-anim1.css
112 lines (97 loc) · 2.81 KB
/
css-anim1.css
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
.t{color : Blue;}
p{ -webkit-animation: my 10s infinite; /* Chrome, Opera, and Safari */
animation: my 10s infinite; /* Standard syntax */
background-color:red;
}
@-webkit-keyframes my /* Chrome, Opera, and Safari */
{
0% {background-color: red;}
50% {background-color: yellow;}
100% {background-color: red;}
}
@keyframes my /* Standard syntax */
{
0% {background-color: red;}
50% {background-color: yellow;}
100% {background-color: red;}
}
H1{background-color:pink;}
html,body{
-webkit-animation: mymove 20s infinite; /* Chrome, Opera, and Safari */
animation: mymove 20s infinite; /* Standard syntax */
background-color: black;
}
@-webkit-keyframes mymove /* Chrome, Opera, and Safari */
{
0% {background-color: black;}
50% {background-color: yellow;}
100% {background-color: black;}
}
@keyframes mymove /* Standard syntax */
{
0% {background-color: black;}
50% {background-color: yellow;}
100% {background-color: black;}
}
.circle { /* for div shape circle class */
width: 50px;
height: 50px;
-webkit-border-radius: 25px;
-moz-border-radius: 25px;
border-radius: 25px;
background: red;
}
#anim{ /* for left to right motion */
width: 50px;
height: 50px;
background-color: red;
position: relative;
-webkit-animation: example 7s infinite; /* Chrome, Safari, Opera */
/* Chrome, Safari, Opera */
animation: example 7s infinite;
}
/* Chrome, Safari, Opera */
@-webkit-keyframes example {
0% {background-color:red; left:0px; top:0px;}
25% {background-color:yellow; }
50% {background-color:blue; }
75% {background-color:green; }
100% {background-color:red; left:92%; top:0px;}
}
/* Standard syntax */
@keyframes example {
0% {background-color:red; left:0px; top:0px;}
25% {background-color:yellow; }
50% {background-color:blue; }
75% {background-color:green; }
100% {background-color:red; left:92%; top:0px;}
}
p #g { /* for device view-width size */
width: 100%;
height: 100%;
position: relative;
}
.blink_text /* for blink operation. */
{
animation:2s blinker linear infinite;
-webkit-animation:2s blinker linear infinite;
-moz-animation:2s blinker linear infinite;
color: white;
}
@-moz-keyframes blinker
{
0% { opacity: 1.0; }
50% { opacity: 0.0; }
100% { opacity: 1.0; }
}
@-webkit-keyframes blinker
{
0% { opacity: 1.0; }
50% { opacity: 0.0; }
100% { opacity: 1.0; }
}
@keyframes blinker {
0% { opacity: 1.0; }
50% { opacity: 0.0; }
100% { opacity: 1.0; }
}