WEBLEB
Inicio
Editora de código
Iniciar sesión
Pro
Español
English
Français
Español
Português
Deutsch
Italiano
हिंदी
luz cambiante
662
mambetov1237.b
Abrir en el editor
Publica tu código
Recomendado
21 June 2025
Contenedor de efectos de luz HTML con CSS
21 September 2024
Luz de entrada de contraseña
7 November 2024
alternar con animación de luz
HTML
Copy
Document
press me
CSS
Copy
body { background-color: white; color: black; transition: background-color 0.3s ease, color 0.3s ease; display: flex; align-items: center; justify-content: center; margin: 250px; } body.dark-mode { background-color: blue; color: white; }<!-- Replace with your HTML Code (Leave empty if not needed) -->
JS
Copy
const toggleButton = document.getElementById("theme-toggle"); toggleButton.addEventListener("click", () => { document.body.classList.toggle("dark-mode"); });/* Replace with your JS Code (Leave empty if not needed) */