Hover Effect Flexible Neon Glowing Buttons using only HTML and CSS.

Flexible Neon Glowing     button      using only

 HTML and CSS.


Here we are creating a button. The specialties of this button is when we hover on it. 

It will automatically Increase self width and letter-spacing too. Then it will show glow.


Like this:




watch video:



source code:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Button</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');


.container{
    displayflex;
    width100vw;
    height100vh;
    background-colorblack;
    justify-contentcenter;
    align-itemscenter;
}

.btn{
   colorwhite;
   border2px solid white;
   width:65px;
   padding10px 10px;
   font-family'Bebas Neue', cursive;
   font-size:20px ;
   border-radius30px;
   text-aligncenter;
   letter-spacingnormal;
   cursorpointer;
   transitionall 1s;

}

.btn:hover{
    transitionall 1s;
    width90px;
    color#0bc7e0;
    border2px solid #0bc7e0;
    letter-spacingnormal;
    text-shadow2px 2px 4px #0bc7e0;
    box-shadow0px 0px 20px #0bc7e0;
    letter-spacing3px;
}
</style>
</head>
<body>
    <div class="container">
        <div class="btn">
            Hover Me
        </div>
    </div>
</body>
</html>


download source code


Post a Comment

0 Comments