Подробное описание и демонстрация работы эффекта наведения для ссылки под номером №52 для библиотеки Bootstrap. Html и CSS код для оформления ссылок на сайте как на изображении.
HTML разметка и CSS стили для оформления ссылок на сайте<div class="demo"> <a href="#" class="link" data-hover="Hover Me"> <span>Hover Me</span> </a> </div>
.link{ font-family: 'Fugaz One', cursive; display: inline-block; position: relative; z-index: 1; } .link span{ color: #444; font-size: 25px; text-transform: uppercase; padding: 0 15px; display: block; transition: all 0.3s; } .link:hover span{ color: transparent; } .link:before, .link:after{ content: ''; background-color: #ff6348; height: 10%; width: 100%; position: absolute; bottom: 0; left: 0; z-index: -1; transition: all 0.3s ease 0s; } .link:after{ content: attr(data-hover); color: #fff; background-color: transparent; font-size: 25px; text-transform: uppercase; height: 100%; padding: 0 15px; z-index: 1; transform: scale(0); } .link:hover:before{ height: 100%; } .link:hover:after{ transform: scale(1); height: 100%; } @media only screen and (max-width: 990px){ .link{ font-size: 20px; } } @media only screen and (max-width: 767px){ .link{ margin: 0 0 30px; } }