Css Buttons with Hover Effect

by Venkatesh Dematti

HTML

<!DOCTYPE html>
<!--Code By Webdevtrick ( https://webdevtrick.com )-->
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <title>Colorful Buttons Hover | Webdevtrick.com</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./style.css">
</head>
<body>

<div class="main-container">
  <h1>Colorful CSS Buttons</h1>
  <section>
    <h2>Border - Open</h2>
    <button class="btn btn-salmon btn-border-o">Crimson</button>
    <button class="btn btn-blue btn-border-o">Dorger Blue</button>
    <button class="btn btn-green btn-border-o">Spring Green</button>
    <button class="btn btn-orange btn-border-o">Dark Orange</button>
    <button class="btn btn-sblue btn-border-o">Steel Blue</button>
    <button class="btn btn-salmon btn-border-o">Salmon</button>
  </section>
  <section>
    <h2>Border</h2>
    <button class="btn btn-salmon btn-border">Crimson</button>
    <button class="btn btn-blue btn-border">Dorger Blue</button>
    <button class="btn btn-green btn-border">Spring Green</button>
    <button class="btn btn-orange btn-border">Dark Orange</button>
    <button class="btn btn-sblue btn-border">Steel Blue</button>
    <button class="btn btn-salmon btn-border">Salmon</button>
  </section>
  <section>
    <h2>Border Reversed - Open</h2>
    <button class="btn btn-salmon btn-border-rev-o">Crimson</button>
    <button class="btn btn-blue btn-border-rev-o">Dorger Blue</button>
    <button class="btn btn-green btn-border-rev-o">Spring Green</button>
    <button class="btn btn-orange btn-border-rev-o">Dark Orange</button>
    <button class="btn btn-sblue btn-border-rev-o">Steel Blue</button>
    <button class="btn btn-salmon btn-border-rev-o">Salmon</button>
  </section>
  <section>
    <h2>Border Reversed</h2>
    <button class="btn btn-salmon btn-border-rev">Crimson</button>
    <button class="btn btn-blue btn-border-rev">Dorger Blue</button>
    <button class="btn btn-green btn-border-rev">Spring Green</button>
   ...

CSS

/* Code By Webdevtrick ( https://webdevtrick.com ) */

.animate, .btn, .btn-border-o:before, .btn-border-o:after, .btn-border:before, .btn-border:after, .btn-border-rev-o:before, .btn-border-rev-o:after, .btn-border-rev:before, .btn-border-rev:after, .btn-fill-vert-o:before, .btn-fill-vert-o:after, .btn-fill-vert:before, .btn-fill-vert:after, .btn-fill-horz-o:before, .btn-fill-horz-o:after, .btn-fill-horz:before, .btn-fill-horz:after {
  transition: all 0.3s;
}
.main-container {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  padding: 0 15px;
}
h1 {
  line-height: 1;
  padding: 25px 0;
  border-bottom: 1px solid #212121;
  font-size: 35px;
  color: #212121;
  text-align: center;
}
section {
  padding: 40px 0 41px;
  text-align: center;
  position: relative;
}
section h2 {
  margin-bottom: 15px;
  font-weight: normal;
  font-size: 17px;
  color: #D2D2D2;
  text-align: center;
}
section:not(:last-child):after {
  content: '';
  width: 70%;
  height: 1px;
  border-bottom: 1px dashed #2c3e50;
  opacity: .5;
  position: absolute;
  bottom: -1px;
  left: 15%;
}
.btn {
  display: inline-block;
  line-height: 35px;
  margin: 8px;
  padding: 0 15px;
  font-size: 15px;
  position: relative;
  opacity: .999;
  border-radius: 3px;
}
.btn-border-o {
  background-color: transparent;
  border: 1px solid #d0d0d0;
  color: #B8B8B8;
}
.btn-border-o:before, .btn-border-o:after {
  content: '';
  border-style: solid;
  position: absolute;
  z-index: 5;
  border-radius: 3px;
  box-sizing: content-box;
}
.btn-border-o:before {
  width: 0;
  height: 100%;
  border-width: 1px 0 1px 0;
  top: -1px;
  left: 0;
  transition-delay: 0.05s;
}
.btn-border-o:after {
  width: 100%;
  height: 0;
  border-width: 0 1px 0 1px;
  top: 0;
  left: -1px;
}
.btn-border-o:hover:before {
  width: 100%;
}
.btn-border-o:hover:after {
  height: 100%;
}
.btn-border-o.btn-salmon:before, .btn-border-o.btn-salmon:after {
  border-color: #e60023;
}
.btn-border-o.btn-salmon:hover {
  color:...