Wednesday, April 24, 2024
HomeCSSPure CSS button animation larger on hover - csshint

Pure CSS button animation larger on hover – csshint


On this article we’re going to be taught Learn how to create button animation larger on hover utilizing css. Designed by ASK Snb.


HTML

<div class="centered">
  <a href="#" class="lgbtn inexperienced">csshint.com</a>
</div>
@import url('https://fonts.googleapis.com/css?household=Poppins:400,500,600,700&show=swap');

            physique {
                background-color: #eee
            }

            * {
                margin: 0;
                padding: 0;
                box-sizing: border-box;
                user-select: none;
                text-transform: uppercase;
                font-family: 'Poppins', sans-serif
            }

            .centered {
                place: absolute;
                prime: 40%;
                left: 40%
            }

            .lgbtn {
              border-radius: 5px;
              padding: 15px 55px;
              font-size: 18px;
              text-decoration: none;
              margin: 20px;
              background-color: inexperienced;
              colour: #fff;
              place: relative;
              show: inline-block;
            }
            .lgbtn:energetic {
              rework: translate(0px, 5px);
              -webkit-transform: translate(0px, 5px);
              box-shadow: 0px 1px 0px 0px;
            }
            .inexperienced {
              background-color: inexperienced;
              box-shadow: 3px 5px 5px #888888;
              border-radius: 2px;
              transition: all .5s ease-in-out;
            }
            .inexperienced:hover {
              background-color: #000;
              colour:#fff;
              padding: 20px 60px;
              rework: scale(1.1);
            }

            a{
               text-decoration: none !vital;
            }

 






RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments