WEBLEB
Inicio
Editora de código
Iniciar sesión
Pro
Español
English
Français
Español
Português
Deutsch
Italiano
हिंदी
el enigma del tiempo
34
ByBy.inc
Abrir en el editor
Publica tu código
Recomendado
21 May 2025
libro electrónico
12 August 2024
Interruptor electrónico
22 March 2025
Mi escuela
HTML
Copy
.clock { animation: pulse 4s infinite; }
CSS
Copy
body { display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; background-color: #1a1a1a; overflow: hidden; font-family: monospace; color: #fff; } /*container do relogio */ .clock-container { position: relative; width: 200px; height: 200px; } /*relogio pulsando */ .clock { width: 100%; height: 100%; border: 5px solid #00ff88; border-radius: 50%; position: relative; animation: pulse 4s infinite; } /*ponteiros */ .hand { position: absolute; bottom: 50%; left: 50%; width: 4px; background-color: #ff0077; transform-origin: bottom; animation: dissolve 4s infinite; } /*ponteiro da hora */ .hour-hand { height: 60px; animation-delay: 0.5s; } /* ponteiro do minuto */ .minute-hand { height: 80px; animation-delay: 1s; } /*codigo depois */ .code-snippet { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 14px; color: #00ff88; opacity: 0; animation: reveal-code 4s infinite; white-space: pre; } /*animações */ @keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.2); opacity: 0.5; } } @keyframes dissolve { 0%, 100% { transform: rotate(0deg) translateY(0); opacity: 1; } 50% { transform: rotate(360deg) translateY(-20px); opacity: 0; } } @keyframes reveal-code { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
JS
Copy
/* Replace with your JS Code (Leave empty if not needed) */