.btn2{ border: none; font-family: inherit; font-size: 20px; color: inherit; background: none; cursor: pointer; display: inline-block; width:60px; height:60px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; outline: none; position: relative; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; transition: all 0.3s; z-index:999; } .btn-12{ border: 3px solid #fff !important; color: #fff !important; } .btn-12b:hover, .btn-1b:active { color: #0545a0 !important; background: #fff; } .btn-12b:hover:after, .btn-1b:active:after { height: 100%; } .btn-12b:after { width: 100%; height: 0; top: 0; left: 0; background: #fff; } .btn2:after { content: ''; position: absolute; z-index: -1; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; transition: all 0.3s; }