Monday, November 22, 2021

Animated Button-"Pressed Effect"

 Animated Button-"Pressed Effect"




<!DOCTYPE html>

<html>

    <head>

        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

        <meta name="viewport" content="width=device-width, initial-scale=1.0">

         <link rel="STYLESHEET"type="text/css"href="web.css">

        <title>web design</title>

    </head>

    <body>

        <h1>Animated Button -"pressed Effect"</h1>

        <button class="btn">Click me</button>

 </body>

</html> 


CSS  Animated Button-"Pressed Effect" Style Sheet 

.btn{

    display: inline-block;

    padding:15px 25px;

    font-size: 24px;

    text-align: center;

    text-decoration: none;

    color: #fff;

    background-color: green;

    outline: none;

    border: none;

    border-radius:15px;

    box-shadow:0px 9px #999 ;

    cursor: pointer;

}

.btn:hover{

    background-color: #3e8e41;

}

.btn:active{

    background-color: #3e8e41;

    box-shadow:0px 5px #666;

    transform: translateY(4px);

}

No comments:

Post a Comment

JavaScript Animated

  JavaScript Animated <!DOCTYPE html> <html> <style> #myContainer {   width: 400px;   height: 400px;   position: relative;...