Simple Button Hover Effects

Simple Button Hover Effects

HTML
<div class="button-list">
  <div class="btn btn-1">
       BUTTON
   </div>
  <div class="btn btn-2">
       BUTTON
   </div>
  <div class="btn btn-3">
       BUTTON
   </div> 
</div> 
CSS
.btn{ 
    width: 180px;
    padding: 20px 0px;
    margin: 15px;
    float: left;
    color: #FFF;  
    text-align: center;
    letter-spacing: 2px;
    transition: all 1s ease-in-out;
    cursor: pointer;
}

.btn-1{
    background: #0062d3;
    box-shadow: 7px 7px 0px 0px #b0d1f1;
    border-radius: 5px; 
}

.btn-1:hover{
   box-shadow: 12px 12px 0px 0px #b0d1f1;
}

.btn-2{
    background: #505050;
    box-shadow: 7px 7px 0px -2px #cbcbcc;
    border-radius: 5px;
    box-shadow: 8px 8px 0 rgba(43, 43, 43, 0.2);
}

.btn-2:hover{
   box-shadow: 12px 12px 0px 0px #cbcbcc;  
}

.btn-3{
    background: #53d257;
    box-shadow: 7px 7px 0px -2px #53c157;
    border-radius: 5px;
}

.btn-3:hover{
   box-shadow: 12px 12px 0px 0px #53c157; 
} 

DEMO

View Demo Button Hover Effect
HTML
<a class="btn-effect">Button</a>
CSS
.btn-effect{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 200px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  background: #FFF;
  border: 2px solid #30713b;
  color: #30713b; 
  font-size: 24px;
  text-transform: uppercase; 
  cursor: pointer; 
  overflow: hidden;
}

.btn-effect:before{
  content: '';
  top: 0;
  left: 0;
  position: absolute;
  background: #6cc0e0;
  width: 100%;
  height: 100%;
  z-index: -1;
  transform-origin: bottom left;
  transform: rotate(-90deg);
  transition: 0.5s;
}

.btn-effect:hover:before{
   transform: rotate(0deg);
}
667 Views
54860cookie-checkSimple Button Hover Effects

Leave a Reply

Your email address will not be published. Required fields are marked *