LATEST >>

Welcome Here And Thanks For Visiting. Like Us On Facebook...

EXEIdeas – Let's Your Mind Rock » CSS Codes / HTML-CSS-PHP-JavaScript » 12 Pure CSS Button Border Style Hover Effects Using Animation

12 Pure CSS Button Border Style Hover Effects Using Animation

12-Pure-CSS-Button-Border-Style-Hover-Effects-Using-Animation
Are you looking for cool Pure CSS button hover effects using Animation? If yes then you are in the right article. Here we are going to show you 12 unique stylish examples with source code.

This set of fancy button effects looks good on all types of browsers and works on small as well as large devices—the button uses CSS3 animations to create the effect.

You don’t need to write the code from the start, just pick the HTML and CSS and put them into your web page to give a new & fresh look to your website.

There are many code snippets available online or on many other blogs and websites but everyone is not able to optimize your blog or website so you need some optimized code snippets. So now checkout out the code snippet for your blog and website that will give you all features for your desired code. Now grab the ready-to-use code and paste it where you want.

Features:

  1. Light Weight.
  2. Pure CSS Code.
  3. Cross Browser.
  4. No External Files.
  5. Fully Customizable.
  6. Responsive.

How To Use 12 Pure CSS Button Border Style Hover Effects Using Animation?

There are a few easy and understandable steps to achieve your desired functionality that we are going to share below. Follow each step perfectly.

Recommended For You:
How To Copy Text From A Div And Paste It Into A TextArea Using JavaScript?

CSS:

<style type="text/css">
button {
margin: 20px;
}
.custom-btn {
color:#3c67e7;
padding: 10px 25px;
min-width: 170px;
font-family: 'Roboto', sans-serif;
font-weight: 500;
background:transparent;
outline: none !important;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
display: inline-block;
font-size: 16px;
min-width: 170px;
}

/**** BTN No. 1 ****/
.btn-1 {
border: 2px solid #000;
}
.btn-1:hover {
background: #000;
color: #fff;
}
.btn-1:active {
top: 2px;
}
/**** BTN No. 2 ****/
.btn-2 {
border: none;
border-bottom: 2px solid #000;
border-left: 2px solid #000;
}
.btn-2:before, .btn-2:after {
position: absolute;
content: "";
right: 0;
top: 0;
background: #000;
transition: all 0.3s ease;
}
.btn-2:before {
height: 0%;
width: 2px;
}
.btn-2:after {
width: 0%;
height: 2px;
}
.btn-2:hover:before {
height: 100%;
}
.btn-2:hover:after {
width: 100%;
}
/**** BTN No. 3 ****/
.btn-3 {
width: 130px;
height: 40px;
line-height: 42px;
padding: 0;
border: none;
}
.btn-3 span {
position: relative;
display: block;
width: 100%;
height: 100%;
}
.btn-3:before, .btn-3:after {
position: absolute;
content: "";
right: 0;
top: 0;
background: #000;
transition: all 0.3s ease;
}
.btn-3:before {
height: 0%;
width: 2px;
}
.btn-3:after {
width: 0%;
height: 2px;
}
.btn-3:hover:before {
height: 100%;
}
.btn-3:hover:after {
width: 100%;
}
.btn-3 span:before, .btn-3 span:after {
position: absolute;
content: "";
left: 0;
bottom: 0;
background: #000;
transition: all 0.3s ease;
}
.btn-3 span:before {
width: 2px;
height: 0%;
}
.btn-3 span:after {
width: 0%;
height: 2px;
}
.btn-3 span:hover:before {
height: 100%;
}
.btn-3 span:hover:after {
width: 100%;
}
/**** BTN No. 4 ****/
.btn-4 {
width: 130px;
height: 40px;
line-height: 42px;
padding: 0;
border: none;
}
.btn-4 span {
position: relative;
display: block;
width: 100%;
height: 100%;
}
.btn-4:before, .btn-4:after {
position: absolute;
content: "";
right: 0;
top: 0;
background: #000;
transition: all 0.3s ease;
}
.btn-4:before {
height: 50%;
width: 2px;
}
.btn-4:after {
width: 20%;
height: 2px;
}
.btn-4:hover:before {
height: 100%;
}
.btn-4:hover:after {
width: 100%;
}
.btn-4 span:before, .btn-4 span:after {
position: absolute;
content: "";
left: 0;
bottom: 0;
background: #000;
transition: all 0.3s ease;
}
.btn-4 span:before {
width: 2px;
height: 50%;
}
.btn-4 span:after {
width: 20%;
height: 2px;
}
.btn-4 span:hover:before {
height: 100%;
}
.btn-4 span:hover:after {
width: 100%;
}
/**** BTN No. 5 ****/
.btn-5 {
width: 130px;
height: 40px;
line-height: 42px;
padding: 0;
border: none;
}
.btn-5 span {
position: relative;
display: block;
width: 100%;
height: 100%;
}
.btn-5:before, .btn-5:after {
position: absolute;
content: "";
right: 0;
bottom: 0;
background: #000;
transition: all 0.3s ease;
}
.btn-5:before {
height: 50%;
width: 2px;
}
.btn-5:after {
width: 20%;
height: 2px;
}
.btn-5:hover:before {
height: 100%;
}
.btn-5:hover:after {
width: 100%;
}
.btn-5 span:before, .btn-5 span:after {
position: absolute;
content: "";
left: 0;
top: 0;
background: #000;
transition: all 0.3s ease;
}
.btn-5 span:before {
width: 2px;
height: 50%;
}
.btn-5 span:after {
width: 20%;
height: 2px;
}
.btn-5 span:hover:before {
height: 100%;
}
.btn-5 span:hover:after {
width: 100%;
}
/**** BTN No. 6 ****/
.btn-6 {
width: 130px;
height: 40px;
line-height: 42px;
padding: 0;
border: none;
}
.btn-6 span {
position: relative;
display: block;
width: 100%;
height: 100%;
}
.btn-6:before, .btn-6:after {
position: absolute;
content: "";
height: 0%;
width: 2px;
background: #000;
}
.btn-6:before {
right: 0;
top: 0;
transition: all 0.1s ease;
}
.btn-6:after {
left: 0;
bottom: 0;
transition: all 0.1s 0.2s ease;
}
.btn-6:hover:before {
transition: all 0.1s 0.2s ease;
height: 100%;
}
.btn-6:hover:after {
transition: all 0.1s ease;
height: 100%;
}
.btn-6 span:before, .btn-6 span:after {
position: absolute;
content: "";
background: #000;
}
.btn-6 span:before {
left: 0;
top: 0;
width: 0%;
height: 2px;
transition: all 0.1s 0.1s ease;
}
.btn-6 span:after {
left: 0;
bottom: 0;
width: 100%;
height: 2px;
}
.btn-6 span:hover:before {
width: 100%;
}
/**** BTN No. 7 ****/
.btn-7 {
border: 2px solid #000;
transition: all 0.3s ease;
background: #f2f2f2;
}
.btn-7:before {
position: absolute;
content: ' ';
z-index: -1;
width: 25%;
top: 50%;
left: -15%;
height: 2px;
background: #000;
transition: all 0.3s ease;
}
.btn-7:hover {
background: #000;
color: #fff;
border-color: #000;
padding-left: 30px;
padding-right: 20px;
}
.btn-7:hover:before {
left: -10%;
}
/**** BTN No. 8 ****/
.btn-8 {
padding-left: 30px;
padding-right: 20px;
background: #f2f2f2;
border: 2px solid #000;
transition: all 0.3s ease;
}
.btn-8:before {
position: absolute;
content: ' ';
z-index: -1;
width: 25%;
top: 50%;
left: -10%;
height: 2px;
background: #000;
transition: all 0.3s ease;
}
.btn-8:hover {
background: #000;
color: #fff;
border-color: transparent;
padding-left: 25px;
padding-right: 25px;
}
.btn-8:hover:before {
left: -15%;
}
/**** BTN No. 9 ****/
.btn-9 {
background: #f2f2f2;
border: 2px solid #000;
transition: all 0.3s ease;
}
.btn-9:before, .btn-9:after {
position: absolute;
content: ' ';
z-index: -1;
width: 25%;
top: 50%;
height: 2px;
background: #000;
transition: all 0.3s ease;
}
.btn-9:before {
left: -10%;
}
.btn-9:after {
right: -10%
}
.btn-9:hover {
background: #000;
color: #fff;
}
.btn-9:hover:before {
left: -15%;
}
.btn-9:hover:after {
right: -15%;
}
/**** BTN No. 10 ****/
.btn-10 {
background: #f2f2f2;
border: 2px solid #000;
transition: all 0.3s ease;
}
.btn-10:before, .btn-10:after {
position: absolute;
content: ' ';
z-index: -1;
width: 25%;
top: 50%;
height: 2px;
background: #000;
transition: all 0.3s ease;
}
.btn-10:before {
left: -15%;
}
.btn-10:after {
right: -15%
}
.btn-10:hover {
background: #000;
color: #fff;
}
.btn-10:hover:before {
left: -10%;
}
.btn-10:hover:after {
right: -10%;
}
/**** BTN No. 11 ****/
.btn-11 {
background: #f2f2f2;
border: 2px solid #000;
transition: all 0.3s ease;
}
.btn-11:before, .btn-11:after {
position: absolute;
content: ' ';
z-index: -1;
width: 25%;
top: 50%;
height: 2px;
background: #000;
transition: all 0.3s ease;
}
.btn-11:before {
left: -10%;
}
.btn-11:after {
right: -10%
}
.btn-11:hover {
background: #000;
color: #fff;
}
.btn-11:hover:before {
left: 0%;
}
.btn-11:hover:after {
right: 0%;
}
/**** BTN No. 12 ****/
.btn-12 {
border: 2px solid #000;
z-index: 1;
}
.btn-12:after {
position: absolute;
content: "";
width: 100%;
height: 0;
bottom: 0;
left: 0;
z-index: -1;
background: #000;
transition: all 0.3s ease;
}
.btn-12:hover {
color: #fff;
}
.btn-12:hover:after {
top: 0;
height: 100%;
}
.btn-12:active {
top: 2px;
}
</style>

HTML:

<div class="buttons-coll">
<button class="custom-btn btn-1">Read More</button>
<button class="custom-btn btn-2">Read More</button>
<button class="custom-btn btn-3"><span>Read More</span></button>
<button class="custom-btn btn-4"><span>Read More</span></button>
<button class="custom-btn btn-5"><span>Read More</span></button>
<button class="custom-btn btn-6"><span>Read More</span></button>
<button class="custom-btn btn-7">Read More</button>
<button class="custom-btn btn-8">Read More</button>
<button class="custom-btn btn-9">Read More</button>
<button class="custom-btn btn-10">Read More</button>
<button class="custom-btn btn-11">Read More</button>
<button class="custom-btn btn-12">Read More</button>
</div>

Customization:

No need to customize it. Just copy-paste. Rest edit the code as per comments and need. Remember to add JavaScript after HTML code.

Recommended For You:
List Of All Keyboard Keys JavaScript Char Codes (Key Codes)

Troubleshooting the Errors:

Do it with concentration and patience. Check your all steps and again and all codes or scripts. If you find any error you can contact us anytime via comment or better via email, We are always here to help you.

Final Words:

That’s all we have. We hope that you liked this article. If you have any problem with this code in your template then feel free to contact us with a full explanation of your problem. We will reply to you as time allows us If you have any doubts or problems please comment below. We are happy to help you! If you liked this article, Don’t forget to share this with your friends so they can also take benefit from it and leave.

You Like It, Please Share This Recipe With Your Friends Using...

Be the first to write a comment.

Leave a Reply

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