<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Gib Airdrop</title> <style> * { margin: 0; padding: 0; overflow: hidden; box-sizing: border-box; background: #000; } body { display: inline-block; transform: scale(1.4, 1); -webkit-transform: scale(1.4, 1); -moz-transform: scale(1.4, 1); -ms-transform: scale(1.4, 1); -o-transform: scale(1.4, 1); } canvas { width: 100%; height: 100%; } </style> </head> <body> <canvas id="canvas"></canvas> <script> const canvas = document.getElementById("canvas"), context = canvas.getContext("2d"), font_size = 14, drops = []; let width = window.innerWidth; let height = window.innerHeight; let columns = Math.floor(width / (font_size * 0.5)); canvas.width = width; canvas.height = height; for (let i = 0; i < columns; i++) { drops[i] = Math.random() * height; } const emojis = ["🦄", "⭐", "🌟", "✨", "🎵", "🎶", "🎼"]; const colors = ["#FF69B4", "#FFFF00", "#1E90FF"]; function draw() { context.fillStyle = "rgba(0, 0, 0, 0.1)"; context.fillRect(0, 0, width, height); for (let i = 0; i < columns; i++) { const emoji = emojis[Math.floor(Math.random() * emojis.length)]; const color = colors[Math.floor(Math.random() * colors.length)]; context.fillStyle = color; context.font = `${font_size}px serif`; context.fillText(emoji, i * font_size * 0.5, drops[i] * font_size); drops[i]++; if (drops[i] * font_size > canvas.height || Math.random() > 0.95) { drops[i] = 0; } } } setInterval(draw, 50); </script> </body> </html>
Inscription number 70,797,070
Genesis block 843,596
File type text
File size 1.82 KB
Creation date May 15,2024 6:14 pm