Glow Button

Home / Web Code Snippet / Glow Button

Glow Button


                                                   https://youtube.com/shorts/pN3txunRNnw?si=afxTkwNZWOWNdpr6

HTML CODE:-
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title></title>
</head>
<body>
    <a href="#">Saksham</a>
</body>
</html>
CSS CODE:-
body{
            padding: 0px;
            margin: 0px;
            box-sizing: border-box;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: black;
        }
        a{
            position: relative;
            padding: 10px 30px;
            color: cyan;
            overflow: hidden;
            text-decoration: none;
            letter-spacing: 2px;
            font-size: 20px;
            transition: 0.5s;
        }
        a:hover{
            background-color:cyan;
            color: black;
            box-shadow: 0px 0px 40px cyan;
            transition-delay: 0.3s;
        }
        a::before{
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 10px;
            height: 10px;
            border-top: 2px solid cyan;
            border-left: 2px solid cyan;
            transition: 0.5s;
        }
        a:hover::before{
            width: 100%;
            height: 100%;
        }
        a::after{
            content: "";
            position: absolute;
            bottom: 0;
            right: 0;
            width: 10px;
            height: 10px;
            border-bottom: 2px solid cyan;
            border-right: 2px solid cyan;
            transition: 0.5s;
        }
        a:hover::after{
            width: 100%;
            height: 100%;
        }