Neumorphism Button

Create Neumorphism Button Using HTML and CSS 




Source Code :- 

HTML :-

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Neomorphism</title>
    <!-- this is custom  css -->
    <link rel="stylesheet" href="22_september.css">
   
</head>

<body>

    <div>
        <button class="noselect red">BUTTON </button>
        <button class="noselect green">BUTTON</button>
    </div>
    <div>
        <button class="noselect blue">BUTTON</button>
        <button class="noselect purple">BUTTON</button>
    </div>
</body>
</html>



CSS :- 

*{
    margin0;
    padding0;
    box-sizingborder-box;
}
body{
    height100vh;
    overflowhidden;
    displayflex;
    flex-directioncolumn;
    align-itemscenter;
    justify-contentcenter;
    background-color#333;
}

button{
    width200px;
    height75px;
    cursorpointer;
    background-color#333;
    margin20px;
    bordernone;
    border-radius10px;
    box-shadow:-5px -5px 15px #444,5px 5px 15px #222,
                inset 5px 5px 10px #444
                inset -5px -5px 10px #222;

    colorrgb(124124124);
    font-size18px;
    letter-spacing2px;
}
button:hover{
    transition0.4s;
}
button:active{
    box-shadow-5px -5px 15px #444,
                 5px 5px 15px #222,
                 inset 5px 5px 10px #222,
                 inset -5px -5px 10px #444;

    font-size17.5px;

}
button:focus{
    outlinenone;
}
/* color button */

.red:hover{
    color#f07171;
    text-shadow0px 0px 10px #f07171;
}

.green:hover{
    colorgreenyellow;
    text-shadow0px 0px 10px greenyellow;
}
.blue:hover{
    colordodgerblue;
    text-shadow0px 0px 10px dodgerblue;
}
.purple:hover{
    colorrgb(2550255);
    text-shadow0px 0px 10px rgb(2550255);
}

Comments

Popular posts from this blog

Clock In HTML , CSS and JavaScript

Hover Effect With CSS