WEBLEB
Home
Editor
Login
Pro
English
English
Français
Español
Português
Deutsch
Italiano
हिंदी
Simulated reality shift
12
ByBy.inc
Open In Editor
Publish Your Code
Recommended
28 June 2025
Shapeshifter Showdown
19 June 2025
Coding the reality
31 July 2025
glitch in the reality machine
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) */