-
-
Notifications
You must be signed in to change notification settings - Fork 76
/
Sample.html
241 lines (209 loc) Β· 8.44 KB
/
Sample.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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ultimate Chaos Web</title>
<style>
/* Basic Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Body Styling */
body, html {
overflow: hidden;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
font-family: Arial, sans-serif;
text-align: center;
}
/* Hypnotic Background */
.hypnotic-background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(circle, #ff00ff, #00ffff);
animation: hypnotic 2s linear infinite;
z-index: -1;
transition: background 0.3s ease;
}
@keyframes hypnotic {
0% { transform: rotate(0deg) scale(1); }
100% { transform: rotate(720deg) scale(1.1); }
}
/* Layered Pattern Overlay */
.hypnotic-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: repeating-radial-gradient(circle, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.05) 10px, transparent 15px, rgba(255, 255, 255, 0.1) 20px);
animation: overlayAnimation 1s linear infinite alternate;
z-index: -1;
mix-blend-mode: overlay;
}
@keyframes overlayAnimation {
0% { transform: scale(1) rotate(0deg); }
50% { transform: scale(1.2) rotate(20deg); }
100% { transform: scale(1) rotate(-20deg); }
}
/* Chaotic Text */
.chaos-text {
position: absolute;
animation: flicker 0.1s infinite alternate;
color: #ff00ff;
cursor: pointer;
transition: transform 0.5s ease;
font-size: 3rem; /* Default size */
}
@keyframes flicker {
0%, 100% { opacity: 1; color: #ff00ff; }
50% { opacity: 0.5; color: #00ffff; }
}
/* Floating Icons */
.floating-icon {
position: absolute;
font-size: 5rem; /* Increased size */
color: #ffcc00;
opacity: 0.8;
cursor: pointer;
transition: transform 0.5s ease;
}
/* Random Movement */
.random-move {
animation: randomMove 5s infinite alternate;
}
@keyframes randomMove {
0% { transform: translate(0, 0); }
25% { transform: translate(50px, -50px); }
50% { transform: translate(-50px, 50px); }
75% { transform: translate(50px, 30px); }
100% { transform: translate(-30px, -30px); }
}
/* Clone Styling */
.clone {
position: absolute;
font-size: 2rem;
opacity: 0.7;
animation: fall 1s ease forwards;
}
@keyframes fall {
from { transform: translateY(0); }
to { transform: translateY(100vh); opacity: 0; }
}
/* Spiral Letter Styling */
.spiral-letter {
position: absolute;
font-size: 3rem;
color: #ffcc00;
opacity: 0.7;
animation: spiral 5s linear forwards;
}
@keyframes spiral {
0% {
transform: translate(0, 0) scale(1) rotate(0deg);
opacity: 1;
}
100% {
transform: translate(-50%, -50%) scale(0.1) rotate(720deg);
opacity: 0;
}
}
/* Burst Animation */
@keyframes burst {
0% {
transform: scale(1);
opacity: 1;
}
100% {
transform: scale(3) rotate(360deg);
opacity: 0;
}
}
/* Screen Flicker Animation */
@keyframes screenFlicker {
0%, 100% { opacity: -1; }
50% { opacity: 0.9; }
75% { opacity: 0.8; }
}
.hypnotic-background, .hypnotic-overlay {
animation: hypnotic 2s linear infinite, screenFlicker 0.1s infinite alternate;
}
</style>
</head>
<body>
<!-- Hypnotic Background and Overlay -->
<div class="hypnotic-background" id="hypnoticBackground"></div>
<div class="hypnotic-overlay" id="hypnoticOverlay"></div>
<!-- Main Content -->
<div class="chaos-text" id="chaosText">Ultimate Chaos Web</div>
<!-- Floating Icons -->
<div class="floating-icon random-move" style="left: 15%; top: 25%;" onclick="createClones(event)">π₯</div>
<div class="floating-icon random-move" style="left: 75%; top: 45%;" onclick="createClones(event)">π</div>
<div class="floating-icon random-move" style="left: 35%; top: 70%;" onclick="createClones(event)">π₯</div>
<div class="floating-icon random-move" style="left: 55%; top: 30%;" onclick="createClones(event)">π</div>
<div class="floating-icon random-move" style="left: 80%; top: 20%;" onclick="createClones(event)">π</div>
<div class="floating-icon random-move" style="left: 10%; top: 60%;" onclick="createClones(event)">π</div>
<div class="floating-icon random-move" style="left: 90%; top: 70%;" onclick="createClones(event)">π</div>
<div class="floating-icon random-move" style="left: 50%; top: 50%;" onclick="createClones(event)">πΆ</div>
<script>
const chaosText = document.getElementById('chaosText');
const hypnoticBackground = document.getElementById('hypnoticBackground');
const hypnoticOverlay = document.getElementById('hypnoticOverlay');
// Random letters array
const letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
// Function to apply chaos effect on text
function applyChaos() {
const maxWidth = window.innerWidth - chaosText.offsetWidth;
const maxHeight = window.innerHeight - chaosText.offsetHeight;
const randomX = Math.floor(Math.random() * maxWidth);
const randomY = Math.floor(Math.random() * maxHeight);
const randomSize = Math.floor(Math.random() * 5 + 2) + 'rem'; // Random size
chaosText.style.left = `${randomX}px`;
chaosText.style.top = `${randomY}px`;
chaosText.style.fontSize = randomSize; // Change size randomly
// Change background colors randomly
const randomColor1 = `#${Math.floor(Math.random() * 16777215).toString(16)}`;
const randomColor2 = `#${Math.floor(Math.random() * 16777215).toString(16)}`;
hypnoticBackground.style.background = `radial-gradient(circle, ${randomColor1}, ${randomColor2})`;
// Randomize overlay size and rotation
const randomScale = Math.random() * 0.5 + 0.75;
const randomRotation = Math.floor(Math.random() * 360);
hypnoticOverlay.style.transform = `scale(${randomScale}) rotate(${randomRotation}deg)`;
}
// Create clones of the clicked icon and scatter them
function createClones(event) {
const icon = event.target.innerText;
const fragment = document.createDocumentFragment();
// Enlarge the clicked emoji
event.target.style.animation = 'burst 0.5s forwards';
for (let i = 0; i < 100; i++) {
const clone = document.createElement('div');
clone.classList.add('clone');
clone.textContent = icon;
clone.style.left = `${Math.random() * window.innerWidth}px`;
clone.style.top = `${Math.random() * window.innerHeight}px`;
clone.style.fontSize = `${Math.random() * 2 + 1}rem`;
clone.style.animationDelay = `${Math.random() * 2}s`;
fragment.appendChild(clone);
}
// Append the clones to the document
document.body.appendChild(fragment);
// Remove clones after animation
setTimeout(() => {
document.body.querySelectorAll('.clone').forEach(clone => clone.remove());
}, 1000);
}
// Apply chaos at intervals
setInterval(applyChaos, 3000);
</script>
</body>
</html>