Home > Web Front-end > JS Tutorial > ✨ Glowing Disco Bulbs Animation with a Glassmorphic Twist! ✨ Code HTML CSS AND JAVASCRIPT

✨ Glowing Disco Bulbs Animation with a Glassmorphic Twist! ✨ Code HTML CSS AND JAVASCRIPT

Patricia Arquette
Release: 2024-12-24 17:25:13
Original
402 people have browsed it

✨ Glowing Disco Bulbs Animation with a Glassmorphic Twist! ✨ Code HTML CSS AND JAVASCRIPT

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Disco Bulb Animation</title>
  <style>
    body {
      margin: 0;
      height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      background: linear-gradient(45deg, #000000, #111111);
      font-family: Arial, sans-serif;
    }

    .container {
      display: flex;
      gap: 200px;
    }

    .wall {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      height: 300px;
      padding: 15px;
      border-radius: 10px;
      background: rgba(96, 95, 95, 0.281);
      backdrop-filter: blur(10px);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    }

    .bulb {
      width: 60px;
      height: 60px;
      background: rgba(255, 255, 255, 0.1);
      border: 2px solid rgba(255, 255, 255, 0.2);
      border-radius: 50%;
      backdrop-filter: blur(10px);
      box-shadow: 0 0 5px rgba(255, 255, 255, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.1);
      transition: box-shadow 0.3s, background-color 0.3s;
    }

    .bulb.glow {
      animation: disco 0.2s infinite alternate;
    }

    @keyframes disco {
      0% {
        background-color: rgba(255, 0, 128, 0.8);
        box-shadow: 0 0 40px 40px rgba(255, 0, 128, 0.8);
      }
      25% {
        background-color: rgba(0, 255, 128, 0.8);
        box-shadow: 0 0 30px 10px rgba(0, 255, 128, 0.8);
      }
      50% {
        background-color: rgba(0, 128, 255, 0.8);
        box-shadow: 0 0 30px 10px rgba(0, 128, 255, 0.8);
      }
      75% {
        background-color: rgba(255, 255, 0, 0.8);
        box-shadow: 0 0 30px 10px rgba(255, 255, 0, 0.8);
      }
      100% {
        background-color: rgba(255, 128, 0, 0.8);
        box-shadow: 0 0 30px 10px rgba(255, 128, 0, 0.8);
      }
    }

    .start-button {
      position: absolute;
      bottom: 50px;
      padding: 15px 30px;
      background: #ff5722;
      color: white;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      font-size: 18px;
      font-weight: bold;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
      transition: background 0.3s;
    }

    .start-button:hover {
      background: #ff784e;
    }
  </style>
</head>
<body>
  <div>




          

            
        
Copy after login

The above is the detailed content of ✨ Glowing Disco Bulbs Animation with a Glassmorphic Twist! ✨ Code HTML CSS AND JAVASCRIPT. For more information, please follow other related articles on the PHP Chinese website!

source:dev.to
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template