Подробное описание и демонстрация работы эффекта наведения для ссылки под номером №12 для библиотеки Bootstrap. Html и CSS код для оформления ссылок на сайте как на изображении.
HTML разметка и CSS стили для оформления ссылок на сайте<a href="#" class="link">hover me</a>
.link{ display: inline-block; padding: 7px 10px; font-size: 20px; color: #0a393d; text-transform: uppercase; position: relative; transition: all 0.3s ease 0s; } .link:hover{ color: #0a393d; } .link:before, .link:after{ content: ""; width: 0; height: 2px; background: #2b9eb3; position: absolute; top: 0; left: 50%; transition: all 0.3s ease 0s; } .link:after{ top: auto; bottom: 0; } .link:hover:before, .link:hover:after{ width: 100%; left: 0; } @media only screen and (max-width: 767px){ .link{ margin-bottom: 20px; } }