-
Notifications
You must be signed in to change notification settings - Fork 15
/
arr3.html
64 lines (57 loc) · 927 Bytes
/
arr3.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
<!DOCTYPE html>
<html>
<head>
<style>
/* Animation property */
button {
animation: wiggle 2s linear infinite;
}
/* Keyframes */
@keyframes wiggle {
0%, 7% {
transform: rotateZ(0);
}
15% {
transform: rotateZ(-15deg);
}
20% {
transform: rotateZ(10deg);
}
25% {
transform: rotateZ(-10deg);
}
30% {
transform: rotateZ(6deg);
}
35% {
transform: rotateZ(-4deg);
}
40%, 100% {
transform: rotateZ(0);
}
}
body {
background: green;
}
button {
position: absolute;
left: calc(50% - 3em);
top: calc(50% - 2em);
height: 4em;
width: 7em;
background: #444;
background: linear-gradient(top, #555, #333);
border: none;
border-top: 3px solid orange;
border-radius: 0 0 0.2em 0.2em;
color: #fff;
font-family: Helvetica, Arial, Sans-serif;
font-size: 3em;
transform-origin: 50% 5em;
}
</style>
</head>
<body>
<button>Save</button>
</body>
</html>