-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexampleanimation.html
155 lines (134 loc) · 1.87 KB
/
exampleanimation.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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<html>
<head>
<style>
{
margin:0px;
padding:opx;
}
.main{
margin:0px;
padding:opx;
display:flex;
justify-content:center;
align-items:center;
background-color:yellow;
}
ul{
list-style-type:none;
}
ul li{
border:1px solid black;
display:flex;
justify-content:space-between;
margin-left:10px;
line-height:20px;
margin:20px 13px 13px 43px;
background-color:green;
padding:7px 2px 3px 14px;
font-size:40px;
overflow:hidden;
float:left;
}
.container{
width:100%;
height:300px;
border:2px solid black;
display:flex;
justify-content:center;
align-items:center;
padding:50px 0px;
background:linear-gradient(white,red,orange);
}
.box{
position:relative;
height:300px;
width:300px;
overflow:hidden;
border-radius:50%;
}
.box img{
width:100%;
height:100%;
}
.inside{
width:100%;
height:100%;
position:absolute;
border:20px solid black;
border-color:yellow black yellow black;
box-sizing:border-box;
border-radius:50%;
top:0;
left:0;
transition: transform 1s;
}
.box:hover .inside{
transform:rotate(180deg);
}
.text{
height:100%;
width:100%;
display:flex;
justify-content:center;
align-items:center;
position:absolute;
top:0 px;
left:0px;
background:linear-gradient(blue,red,green,yellow);
font-size:30px;
font-family:'oswald',sans-serif;
font-weight:bold;
text-transform:bold;
top:0;
left:0;
color:white;
opacity:0;
transition: opacity 1s;
}
.box:hover .text
{
opacity:1;
}
.bottom
{
display:inline-block;
border:2px solid black;
margin-left:13px;
margin-top:0px;
height:300px;
width:600px;
}
.bottom1
{
display:flex;
margin-left:33px;
margin-top:0px;
height:300px;
width:600px;
}
</style>
</head>
<body>
<div class="main">
<ul>
<li> Home</li>
<li>Blogs</li>
<li>Videos</li>
<ul>
</div>
<div class="container">
<div class="box">
<img src="city.jpg"/>
<div class="inside">
</div>
<div class="text">
sadique
</div>
</div>
</div>
<div class="bottom">
</div>
<div class="bottom1">
</div>
</body>
</html>