-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCSS-animation-prefixes.html
46 lines (43 loc) · 1.28 KB
/
CSS-animation-prefixes.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CSS Animation Prefix</title>
<style>
.hover-text {
transition: all 0.5s;
-moz-transition: all 0.5s;
-ms-transition: all 0.5s;
-webkit-transition: all 0.5s;
-o-transition: all 0.5s;
}
.hover-text:hover {
color: #002903;
font-size: 20px;
}
.box {
position: fixed;
width: 50px;
height: 50px;
background: crimson;
border: 1px solid black;
animation: grow ease-out 0.5s infinite alternate both;
-webkit-animation: grow ease-out 0.5s infinite alternate both; /*chrome,safari,ios Support*/
-ms-animation: grow ease-out 0.5s infinite alternate both; /*IE,edge Support*/
-moz-animation: grow ease-out 0.5s infinite alternate both; /*Mozilla Support*/
-o-animation: grow ease-out 0.5s infinite alternate both; /*Opera Support*/
}
@keyframes grow {
100% {
transform: scale(0.3, 0.3);
background: forestgreen;
}
}
</style>
</head>
<body>
<p class="hover-text">Hover over me!</p>
<div class="box"></div>
</body>
</html>