Подробное описание и демонстрация работы эффекта наведения для ссылки под номером №44 для библиотеки Bootstrap. Html и CSS код для оформления ссылок на сайте как на изображении.
HTML разметка и CSS стили для оформления ссылок на сайте<div class="demo"> <a href="#" class="link"><span>hover me</span></a> </div>
.link{ font-family: 'K2D', sans-serif; display: inline-block; position: relative; } .link span{ color: #707070; font-size: 30px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; text-align: center; padding: 0 5px; display: block; transition: all 0.3s cubic-bezier(0.815, 1.400, 0.600, 0.180); } .link:hover span{ color: #00ad48; } .link:before, .link:after{ content: ''; height: 3px; width: 0; background-color: #00ad48; position: absolute; left: 0; bottom: 0; transition: all 0.3s cubic-bezier(0.815, 1.400, 0.600, 0.180); } .link:after{ left: auto; right: 0; } .link:hover:before, .link:hover:after{ width: 50%; } @media only screen and (max-width: 990px){ .link span{ font-size: 20px; } } @media only screen and (max-width: 767px){ .link{ margin-bottom: 20px; } }