Подробное описание и демонстрация работы эффекта наведения для ссылки под номером №45 для библиотеки Bootstrap. Html и CSS код для оформления ссылок на сайте как на изображении.
HTML разметка и CSS стили для оформления ссылок на сайте<div class="demo"> <a href="#" class="link"><span>hover me</span></a> </div>
.link{ font-family: 'Mali', cursive; display: inline-block; position: relative; z-index: 1; } .link span{ color: #e74c3c; font-size: 25px; font-weight: 600; text-transform: uppercase; padding: 5px 10px; display: block; transition: all 0.3s ease-in-out; } .link:hover span{ color: #fff; text-shadow: 0 0 5px #000; } .link:before, .link:after, .link span:before, .link span:after{ content: ""; height: 50%; width: 50%; background-image: linear-gradient(to right,#e74c3c,#e74c3c,#fff); transform: scale(0); opacity: 1; position: absolute; top: 0; left: 0; z-index: -1; transition: all 0.3s; } .link:after{ top: auto; bottom: 0; } .link span:before, .link span:after{ background-image: linear-gradient(to left,#e74c3c,#e74c3c,#fff); left: auto; right: 0; } .link span:after{ top: auto; bottom: 0; } .link:hover:before, .link:hover:after, .link:hover span:before, .link:hover span:after{ transform: scale(1); opacity: 0.8; } @media only screen and (max-width: 990px){ .link span{ font-size: 20px; } } @media only screen and (max-width: 767px){ .link{ margin-bottom: 20px; } }