Подробное описание и демонстрация работы эффекта наведения для ссылки под номером №16 для библиотеки Bootstrap. Html и CSS код для оформления ссылок на сайте как на изображении.
HTML разметка и CSS стили для оформления ссылок на сайте<a href="#" class="link"><span>hover me</span></a>
.link{ display: inline-block; position: relative; } .link span{ display: block; padding: 7px 15px; font-size: 20px; color: rgba(91,27,4,0.5); text-transform: uppercase; transition: all 0.3s ease 0s; } .link:before, .link:after, .link span:before, .link span:after{ content: ""; width: 10px; height: 10px; position: absolute; opacity: 0; transition: all 0.3s ease 0s; } .link:before{ border: 3px solid #5b1b04; border-right: none; border-bottom: none; top: -8px; left: -8px; } .link:hover:before{ top: 0; left: 0; } .link:after{ border: 3px solid #5b1b04; border-left: none; border-bottom: none; top: -8px; right: -8px; } .link:hover:after{ top: 0; right: 0; } .link span:before{ border: 3px solid #5b1b04; border-right: none; border-top: none; bottom: -8px; left: -8px; } .link:hover span:before{ bottom: 0; left: 0; } .link span:after{ border: 3px solid #5b1b04; border-left: none; border-top: none; bottom: -8px; right: -8px; } .link:hover span:after{ bottom: 0; right: 0; } .link:hover:before, .link:hover:after, .link:hover span:before, .link:hover span:after{ opacity: 1; } .link:hover span{ color: #5b1b04; } @media only screen and (max-width: 767px){ .link{ margin-bottom: 20px; } }