-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathoctopus.html
145 lines (132 loc) · 3.25 KB
/
octopus.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Octopus</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.octopus {
background: linear-gradient(to bottom, #ffeeee, #d64545);
border-radius: 300px;
height: 310px;
width: 300px;
position: relative;
}
.eyes {
position: absolute;
width: 160px;
top: 55%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
justify-content: space-between;
}
.right-eye,
.left-eye {
width: 60px;
height: 90px;
border-radius: 30px / 45px;
background: #1f2933;
position: relative;
box-shadow: 0 -20px 10px rgba(255, 255, 255, 0.1) inset;
}
.right-eye::before,
.left-eye::before {
content: '';
position: absolute;
width: 90px;
height: 120px;
border-radius: 45px / 60px;
background: linear-gradient(135deg, #fff, #e66a6a);
z-index: -1;
bottom: -15%;
left: -25%;
}
.right-eye::after,
.left-eye::after {
content: '';
position: absolute;
width: 15px;
height: 25px;
border-radius: 15px / 25px;
background: #fff;
background: linear-gradient(to bottom right, #fff, #1f2933);
top: 15px;
left: 20px;
}
.mouth {
width: 20px;
height: 30px;
background: #1f2933;
border-radius: 50%;
position: absolute;
left: 50%;
bottom: 10px;
transform: translateX(-50%);
border: 10px solid #f29b9b;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.tentacle {
width: 350px;
height: 110px;
position: absolute;
background: linear-gradient(to bottom right, #ffeeee, #d64545);
border-radius: 63% 37% 54% 46% / 30% 0% 100% 70%;
}
.right-1,
.left-1 {
bottom: -50px;
z-index: -1;
}
.left-1 {
left: -195px;
transform: rotate(10deg);
}
.right-1 {
transform: scale(-1, 1) rotate(10deg);
right: -195px;
}
.right-2,
.left-2 {
bottom: 20px;
z-index: -2;
}
.left-2 {
left: -210px;
transform: rotate(30deg);
}
.right-2 {
right: -210px;
transform: scale(-1, 1) rotate(30deg);
}
.author {
margin-top: 100px;
}
</style>
</head>
<body>
<div class="octopus">
<div class="eyes">
<div class="right-eye"></div>
<div class="left-eye"></div>
</div>
<div class="mouth"></div>
<div class="tentacle left-1"></div>
<div class="tentacle left-2"></div>
<div class="tentacle right-1"></div>
<div class="tentacle right-2"></div>
</div>
<p class="author">
<a target="_blank" href="https://github.com/rmasianjr"
>Ricardo Masian Jr.</a
>
</p>
</body>
</html>