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