Neon Glowing Button (HTML CSS)

 

Referenced : https://www.codingtuting.com/2019/09/neon-buttons-pure-css.html

NeonButton.html



<!DOCTYPE html>
<html lang="en">
 
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
 
    <link href="https://fonts.googleapis.com/css?family=Lato|Nanum+Gothic:700|Raleway&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="StyleNeon.css">
 
    <title>Neon Buttons </title>
</head>
 
<body>
            <div align="center">
                <button class="sky-neon"> SCAN </button>
            </div>
</body>
 
</html>



StyleNeon.css

 
 
body {
    background-color: #272727;
}
 

button {
    font-size: 20px;
    width: 230px;
    height: 80px;
    border-radius: 4px;
    cursor:pointer;
    font-family: lato;
    outline: none;
    display: block;
}
 
/* Solid Button */
.sky-neon {
    color: #1c5169;
    background-color: #86dbff;
    -webkit-transition: .3s all ease-in;
    transition: .3s all ease-in;
    border: 2px solid transparent;
}
 
.sky-neon:hover{
    -webkit-box-shadow: 0px 0px 20px 15px #3cc6d8;
    box-shadow: 0px 0px 30px 20px #3cc6d8;
    background-color: #d7f3ff;
}


.sky-neon:active {
    transform: scale(0.82);
    /* Scaling button to 0.92 to its original size */
    box-shadow: 5px 3px 25px 2px rgba(0, 0, 0, 0.24);
    /* Lowering the shadow */
}

 




























































Comments

Popular posts from this blog

React Js + React-Redux (part-2)

React Js + CSS Styling + React Router (part-1)

ViteJS (Module Bundlers, Build Tools)