"Buttons Hover Effects"
Bootstrap 3.3.0 Snippet by bsrnlr

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.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 ----------> <div class="container"> <!--1--> <div class="button">Center -> out</div> <div class="button">Left -> Right -> Left</div> <div class="button">Left -> Right -> Right</div> <div class="button">Top -> Bottom -> Top</div> <div class="button">Skew Fill Left -> Right</div> <div class="button">Flex Grow</div> <div class="button">Rounded Corners</div> <div class="button">Scale</div> <div class="button">Border (Inner Shadow)</div> <div class="button">Border (Outer Shadow)</div> </div>
body { background: -webkit-linear-gradient(315deg, #55efcb 0%, #1e5799 0%, #55efcb 0%, #5bcaff 100%); background: linear-gradient(135deg, #55efcb 0%, #1e5799 0%, #55efcb 0%, #5bcaff 100%); color: #f7f7f7; font-family: 'Lato', sans-serif; font-weight: 300; } .container { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; -webkit-align-content: center; -ms-flex-line-pack: center; align-content: center; -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap; width: 60vw; max-width: 1200px; margin: 0 auto; min-height: 100vh; } .button { -webkit-box-flex: 1; -webkit-flex: 1 1 auto; -ms-flex: 1 1 auto; flex: 1 1 auto; margin: 10px; padding: 20px; border: 2px solid #f7f7f7; text-align: center; text-transform: uppercase; position: relative; overflow: hidden; -webkit-transition: .3s; transition: .3s; } .button:after { position: absolute; -webkit-transition: .3s; transition: .3s; content: ''; width: 0; left: 50%; bottom: 0; height: 3px; background: #f7f7f7; } .button:nth-of-type(2):after { left: 0; } .button:nth-of-type(3):after { right: 0; left: auto; } .button:nth-of-type(4):after { left: 0; bottom: auto; top: -3px; width: 100%; } .button:nth-of-type(5):after { height: 120%; left: -10%; -webkit-transform: skewX(15deg); -ms-transform: skewX(15deg); transform: skewX(15deg); z-index: -1; } .button:hover { cursor: pointer; } .button:hover:after { width: 100%; left: 0; } .button:hover:nth-of-type(4):after { top: calc(100% - 3px); } .button:hover:nth-of-type(5) { color: #5bcaff; } .button:hover:nth-of-type(5):after { left: -10%; width: 120%; } .button:hover:nth-of-type(6) { -webkit-box-flex: 3; -webkit-flex-grow: 3; -ms-flex-positive: 3; flex-grow: 3; } .button:hover:nth-of-type(6):after { width: 0%; } .button:hover:nth-of-type(7) { border-radius: 30px; } .button:hover:nth-of-type(7):after { width: 0%; } .button:hover:nth-of-type(8) { -webkit-transform: scale(1.2); -ms-transform: scale(1.2); transform: scale(1.2); } .button:hover:nth-of-type(8):after { width: 0%; } .button:hover:nth-of-type(9) { box-shadow: inset 0px 0px 0px 3px #f7f7f7; } .button:hover:nth-of-type(9):after { width: 0%; } .button:hover:nth-of-type(10) { box-shadow: 0px 0px 0px 3px #f7f7f7; } .button:hover:nth-of-type(10):after { width: 0%; }

Related: See More


Questions / Comments: