WEBLEB
Home
Editor
Accedi
Pro
Italiano
English
Français
Español
Português
Deutsch
Italiano
हिंदी
Spostamento della realtà simulata
557
byby.createsite
Apri nell'Editor
Pubblica il Tuo Codice
Consigliato
22 May 2025
Gioco del lancio della moneta
3 October 2025
Effetto di trasformazione della forma del sistema di particelle Three.js
12 July 2025
Contatore di clic della barra spaziatrice - JavaScript HTML
HTML
Copy
CSS
Copy
* { margin: 0; padding: 0; box-sizing: border-box; } body { background-color: #000; display: flex; align-items: center; justify-content: center; height: 100vh; overflow: hidden; } .animation-container { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 100%; height: 50%; overflow: hidden; background-color: #000; } /* Começa a animação */ .sistema { width: 100px; height: 100px; background-color: #333; position: relative; animation: glitch 1s infinite; /* Ativa a animação loop */ } @keyframes glitch { 0% { background-color: #333; /* Cor original */ } 5% { /* Cor altera rapidamente */ background-color: #666; } 10% { background-color: #333; } 15% { /* Cor altera novamente */ background-color: #999; } 20% { background-color: #666; } 25%, 75%, 90%, 95% { /* Cor retorna à original */ background-color: #333; } 100% { /* Finaliza o loop */ background-color: #333; } }
JS
Copy
/* Replace with your JS Code (Leave empty if not needed) */