-
Notifications
You must be signed in to change notification settings - Fork 0
/
animation-border-radius.html
54 lines (47 loc) · 1.14 KB
/
animation-border-radius.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
<!DOCTYPE html>
<html>
<head>
<title>border-radius hello world</title>
<style>
html {
height: 100%;
}
body {
display: grid;
place-items: center;
height: 100%;
}
div {
border-radius: 10% 50% 10% 10%;
background-color: tomato;
font-size: 50px;
color: white;
padding: 20px;
font-family: Verdana, Geneva, Tahoma, sans-serif;
width: 250px;
height: 250px;
animation: 2s ease-in-out 0s infinite alternate move_box,
1s linear 0s infinite alternate change_background_color;
}
@keyframes move_box {
from {
margin-left: -20%;
background-color: rgb(178, 76, 238);
}
to {
margin-left: 20%;
background-color: tomato;
}
}
@keyframes change_background_color {
from {
}
to {
}
}
</style>
</head>
<body>
<div>Free cookies on Tuesdays</div>
</body>
</html>