-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
118 lines (114 loc) · 2.96 KB
/
index.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
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
113
114
115
116
117
118
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>task5</title>
<style>
*{
background-color: black;
}
.out{
left: 550px;
top: 200px;
border-radius: 100px;
background-image:url(./photos/hi.jpeg) ;
background-size: cover;
position: relative;
height: 600px;
width: 700px;
background-color: yellow;
animation-name:sabarii;
animation-duration: 10s;
animation-delay:1s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: normal ;
transition: linear;
}
.in{
background-image: url(./photos/laughing-luffy-one-3840x2160-19342.jpg);
background-size:contain;
position: absolute;
height: 100px;
width: 100px;
border-radius:100px;
background-color: red;
animation-name:sabari;
animation-duration: 10s;
animation-delay:1s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: normal ;
transition: linear;
top: 500px;
left: 40%;
}
@keyframes sabari{
0%{
top: 500px;
left: 40%;
}
16%{
top:500px;
left: 0px;
transform: rotate(360deg);
}
32%{
top:500px;
left: 0px;
/* transform: rotate(0deg); */
}
48%{
top:500px;
left:600px;
transform: rotate(0deg);
}
64%{
top:500px;
left:600px;
/* transform: rotate(0deg); */
}
80%{
top: 500px;
left: 30%;
transform: rotate(360deg);
}
100%{
top: 500px;
left: 40%;
transform: rotate(0deg);
}
}
@keyframes sabarii{
0%{
transform: rotate(0deg);
}
16%{
transform: rotate(-30deg);
}
32%{
transform: rotate(0deg);
}
48%{
transform: rotate(30deg);
}
64%{
transform: rotate(0deg);
}
80%{
transform: rotate(-10deg);
}
100%{
transform: rotate(0deg);
}
}
</style>
</head>
<body>
<div class="out">
<div class="in">
</div>
</div>
</body>
</html>