Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"button"
Bootstrap 3.0.0 Snippet by
evarevirus
3.0.0
Preview
HTML
View Full Screen
Fork
Fork this
2.3K
 
2 Fav
Post to Facebook
Tweet this
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html><html lang='en' class=''> <head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d14629260c3ec49e5606f98fdd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/css_live_reload_init-2c0dc5167d60a5af3ee189d570b1835129687ea2a61bee3513dee3a50c115a77.js'></script><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="shortcut icon" type="image/x-icon" href="//production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /><link rel="mask-icon" type="" href="//production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /><link rel="canonical" href="https://codepen.io/fox_hover/pen/bqZxLa?limit=all&page=4&q=button" /> <link href="https://fonts.googleapis.com/css?family=Droid+Serif:400,700i" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css'><link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css'> <style class="cp-pen-styles">/* common styles !!!YOU DON'T NEED THEM */ body { background-color: #F1E9DA; } body .container { width: 850px; margin: 70px auto 0px auto; text-align: center; } body .container h1 { font-family: 'Droid Serif', serif; font-weight: 400; font-style: normal; font-size: 30px; margin-bottom: 30px; } body .container h1 span { font-weight: 700; font-style: italic; color: #D90368; border-bottom: 2px dashed currentColor; } body .container .button-effect { padding: 30px 0px; } body .container .button-effect h2 { font-family: 'Droid Serif', serif; font-size: 20px; margin-bottom: 40px; } body .container .button-effect a { margin-right: 17px; } body .container .button-effect a:nth-child(2) { background-color: #541388; } body .container .button-effect a:nth-child(3) { background-color: #D90368; } body .container .button-effect a:nth-child(4) { background-color: #104547; } body .container .button-effect a:nth-child(5) { background-color: #4F000B; } body .container .button-effect a:nth-child(6) { background-color: #F28123; } body .container .button-effect a:last-child { margin-right: 0px; } /* button styles !!!YOU NEED THEM !!!ALSO YOU NEED TO ADD FONTWESOME */ .effect { text-align: center; display: inline-block; position: relative; text-decoration: none; color: #fff; text-transform: capitalize; /* background-color: - add your own background-color */ font-family: 'Roboto', sans-serif; /* put your font-family */ font-size: 18px; padding: 20px 0px; width: 150px; border-radius: 6px; overflow: hidden; } /* effect-1 styles */ .effect.effect-1 { -webkit-transition: all 0.2s linear 0s; transition: all 0.2s linear 0s; } .effect.effect-1:before { content: "\f178"; font-family: FontAwesome; font-size: 15px; position: absolute; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; right: 0; top: 0; opacity: 0; height: 100%; width: 40px; -webkit-transition: all 0.2s linear 0s; transition: all 0.2s linear 0s; } .effect.effect-1:hover { text-indent: -20px; } .effect.effect-1:hover:before { opacity: 1; text-indent: 0px; } /* effect-2 styles */ .effect.effect-2 { -webkit-transition: all 0.2s linear 0s; transition: all 0.2s linear 0s; } .effect.effect-2:before { content: "\f0a4"; font-family: FontAwesome; font-size: 15px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; position: absolute; top: 0; right: -30px; width: 30px; height: 100%; background-color: rgba(255, 255, 255, 0.3); border-radius: 0px 6px 6px 0px; -webkit-transition: all 0.2s linear 0s; transition: all 0.2s linear 0s; text-align: center; } .effect.effect-2:hover { text-indent: -30px; } .effect.effect-2:hover:before { right: 0; text-indent: 0px; } /* effect-3 styles */ .effect.effect-3 { -webkit-transition: all 0.2s linear 0s; transition: all 0.2s linear 0s; } .effect.effect-3:before { content: "\f178"; font-family: FontAwesome; position: absolute; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; position: absolute; top: 100%; left: 0px; width: 100%; height: 100%; text-align: center; font-size: 30px; -webkit-transition: all 0.2s linear 0s; transition: all 0.2s linear 0s; } .effect.effect-3:hover { text-indent: -9999px; } .effect.effect-3:hover:before { top: 0; text-indent: 0; } /* effect-4 styles */ .effect.effect-4 { -webkit-transition: all 0.2s linear 0s; transition: all 0.2s linear 0s; } .effect.effect-4:before { content: "\f178"; font-family: FontAwesome; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; position: absolute; top: 0; left: 0px; width: 100%; height: 100%; text-align: center; font-size: 30px; -webkit-transform: scale(0, 1); transform: scale(0, 1); -webkit-transition: all 0.2s linear 0s; transition: all 0.2s linear 0s; } .effect.effect-4:hover { text-indent: -9999px; } .effect.effect-4:hover:before { -webkit-transform: scale(1, 1); transform: scale(1, 1); text-indent: 0; } /* effect-5 styles */ .effect.effect-5 { -webkit-transition: all 0.2s linear 0s; transition: all 0.2s linear 0s; } .effect.effect-5:before { content: "\f054"; font-family: FontAwesome; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; position: absolute; top: 0; left: 0px; height: 100%; width: 30px; background-color: rgba(255, 255, 255, 0.3); border-radius: 0 50% 50% 0; -webkit-transform: scale(0, 1); transform: scale(0, 1); -webkit-transform-origin: left center; transform-origin: left center; -webkit-transition: all 0.2s linear 0s; transition: all 0.2s linear 0s; } .effect.effect-5:hover { text-indent: 30px; } .effect.effect-5:hover:before { -webkit-transform: scale(1, 1); transform: scale(1, 1); text-indent: 0; } </style></head><body> <div class="container"> <h1>CSS3 Button <span>Hover</span> Effects</h1> <div class="button-effect"> <h2>Effect #1</h2> <a class="effect effect-1" href="#" title="Learn More">Learn More</a> <a class="effect effect-1" href="#" title="Learn More">Learn More</a> <a class="effect effect-1" href="#" title="Learn More">Learn More</a> <a class="effect effect-1" href="#" title="Learn More">Learn More</a> <a class="effect effect-1" href="#" title="Learn More">Learn More</a> </div> <div class="button-effect"> <h2>Effect #2</h2> <a class="effect effect-2" href="#" title="Learn More">Learn More</a> <a class="effect effect-2" href="#" title="Learn More">Learn More</a> <a class="effect effect-2" href="#" title="Learn More">Learn More</a> <a class="effect effect-2" href="#" title="Learn More">Learn More</a> <a class="effect effect-2" href="#" title="Learn More">Learn More</a> </div> <div class="button-effect"> <h2>Effect #3</h2> <a class="effect effect-3" href="#" title="Learn More">Learn More</a> <a class="effect effect-3" href="#" title="Learn More">Learn More</a> <a class="effect effect-3" href="#" title="Learn More">Learn More</a> <a class="effect effect-3" href="#" title="Learn More">Learn More</a> <a class="effect effect-3" href="#" title="Learn More">Learn More</a> </div> <div class="button-effect"> <h2>Effect #4</h2> <a class="effect effect-4" href="#" title="Learn More">Learn More</a> <a class="effect effect-4" href="#" title="Learn More">Learn More</a> <a class="effect effect-4" href="#" title="Learn More">Learn More</a> <a class="effect effect-4" href="#" title="Learn More">Learn More</a> <a class="effect effect-4" href="#" title="Learn More">Learn More</a> </div> <div class="button-effect"> <h2>Effect #5</h2> <a class="effect effect-5" href="#" title="Learn More">Learn More</a> <a class="effect effect-5" href="#" title="Learn More">Learn More</a> <a class="effect effect-5" href="#" title="Learn More">Learn More</a> <a class="effect effect-5" href="#" title="Learn More">Learn More</a> <a class="effect effect-5" href="#" title="Learn More">Learn More</a> </div> </div> <script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script> <script >//check on github //https://github.com/eisenfox/css3-button-hovers //# sourceURL=pen.js </script> </body></html>
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76