Skip to main content

Create Eye-Catching 🔥 Glowing CSS Buttons for Your Website in 2024

 
Learn how to create eye-catching glowing CSS buttons for your website in 2024 with this easy tutorial on CSS 3D 🔥glowing buttons. Stand out from the crowd and add a touch of interactivity to your web design with these modern and attractive buttons. Watch now to elevate your website's user experience!
🔔 Subscribe for more videos














index.html

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="style.css" />
    <link
      rel="stylesheet"
      href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css"/>
    <title>Document</title>
  </head>
  <body>
    <div class="button">
      <label>
        <input type="checkbox" name="check" />
        <span></span>
        <i class="fa-sharp fa-solid fa-1"></i>
      </label>
      <label>
        <input type="checkbox" name="check" />
        <span></span>
        <i class="fa-sharp fa-solid fa-2"></i>
      </label>
      <label>
        <input type="checkbox" name="check" />
        <span></span>
        <i class="fa-sharp fa-solid fa-3"></i>
      </label>
      <label>
        <input type="checkbox" name="check" />
        <span></span>
        <i class="fa-sharp fa-solid fa-4"></i>
      </label>
      <label>
        <input type="radio" id="up" name="check" value="up" />
        <span></span>
        <i class="fa-sharp fa-solid fa-arrow-up" id="up"></i>
      </label>
      <label>
        <input type="radio" id="down" name="check" value="down" />
        <span></span>
        <i class="fa-sharp fa-solid fa-arrow-down" id="down"></i>
      </label>
    </div>
  </body>
</html>



style.css

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #333;

}
.button{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 140px;
    gap: 20px;
   
   
}

.button label{
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

}
.button label input{
    appearance: none;
}
.button label input:checked ~ span{
    box-shadow: inset 0 2px 2px rgba(0,0,0,0.2),
    inset 0 5px 5px rgba(0,0,0,0.5), inset 0 10px 15px rgba(0,0,0,0.8);
}

.button label span{
    position: absolute;
    width: 100%;
    height: 100%;
    background:linear-gradient(#555353,#363535,#303030);
    border: 2px solid #191919;
    border-radius: 8px ;
    box-shadow: inset 0 5px 3px rgba(0,0,0,0.5) , 0 5px 1px rgba(29, 28, 28, 0.8), 0 10px 15px rgba(52, 52, 52, 0.5);
}
button label span:before{
    content: '';
    position: absolute;
   inset: 5px 3px;
}
.button label i{
    position: relative;
    z-index: 10;
    font-size: 1.5em;
    color: #111;
   
}
.button label input:checked ~ i{
    color: white;
    text-shadow: 0 0 5px rgb(13, 127, 235);
}
.button label input:checked ~ #up{
    color: #0fbaa6;
   
}
.button label input:checked ~ #down{
    color: rgb(209, 32, 32);
}













Comments

Popular posts from this blog

How to Build Your Own Image Uploader using HTML, CSS, and JS Tutorial

    Welcome to our step-by-step tutorial on creating your own image uploader using #html  , #css  , and JavaScript. In this video, we'll guide you through the process of building a simple yet effective image uploader for your web projects. With just a few lines of code, you'll learn how to create a user-friendly interface that allows users to upload images seamlessly. Whether you're a beginner or an experienced developer looking to enhance your skills, this tutorial is perfect for you. Follow along and empower yourself to create dynamic web applications with ease! Don't forget to like, share, and subscribe for more coding tutorials. Let's get started!  index.html   <! DOCTYPE html > < html lang = "en" > < head >     < meta charset = "UTF-8" >     < meta name = "viewport" content = "width=device-width, initial-scale=1.0" >     < title > Drag & Drop Image Uploader </ title >...

Create an Animated Switch with HTML and CSS in 2024

  Create an Animated Switch with HTML and CSS in 2024 Learn how to create an animated switch using HTML and CSS in 2024! This tutorial will guide you through the process of building a sleek and modern switch element for your website. Enhance your web development skills and stay up-to-date with the latest design trends by mastering this technique. Watch now to level up your front-end development game!  index.html  <! DOCTYPE html > < html lang = "en" > < head >     < meta charset = "UTF-8" >     < meta name = "viewport" content = "width=device-width, initial-scale=1.0" >     < title > Document </ title >     < link rel = "stylesheet" href = "style.css" > </ head > < body >     < label class = "switch" >         < input type = "checkbox" checked = "checked" >         < div class = "button" >  ...

Animated Switch

    index.html <! DOCTYPE html > < html lang = "en" > < head >     < meta charset = "UTF-8" >     < meta name = "viewport" content = "width=device-width, initial-scale=1.0" >     < title > Document </ title >     < link rel = "stylesheet" href = "style.css" > </ head > < body >     < label class = "switch" >         < input class = "cb" type = "checkbox" />         < span class = "toggle" >           < span class = "left" > off </ span >           < span class = "right" > on </ span >         </ span >       </ label >       </ body > </ html > style.css  /* The switch - the box around the slider */ .switch {     font-size : 17px ; ...