Подробное описание и демонстрация работы эффекта наведения для ссылки под номером №59 для библиотеки Bootstrap. Html и CSS код для оформления ссылок на сайте как на изображении.
HTML разметка и CSS стили для оформления ссылок на сайте<div class="demo"> <a href="#" class="link"> <span data-hover="hover me">Hover Me</span> </a> </div>
.link{ font-family: 'Sarabun', sans-serif; color: transparent; display: inline-block; position: relative; } .link:hover{ color: transparent; } .link:before{ content: ""; background: #777; height: 3px; transform: scale(0); position: absolute; top: 50%; left: -10px; right: -10px; z-index: 1; transition: 0.3s ease-in-out all; } .link:hover:before{ transform: scale(1); } .link span{ font-size: 25px; font-weight: 700; line-height: 23px; text-align: center; letter-spacing: 1px; text-transform: uppercase; display: block; } .link span:before, .link span:after{ content: attr(data-hover); color: #777; height: 100%; width: 100%; position: absolute; left: 0; top: 0; -webkit-clip-path: polygon(0 0, 0 52%, 100% 52%, 100% 0); clip-path: polygon(0 0, 0 52%, 100% 52%, 100% 0); transition: 0.3s ease-in-out all; } .link span:after{ -webkit-clip-path: polygon(0 50%, 0 100%, 100% 100%, 100% 50%); clip-path: polygon(0 50%, 0 100%, 100% 100%, 100% 50%); } .link:hover span:before, .link:hover span:after{ color: #00b894; } .link:hover span:before{ transform: translateX(-3px) skewX(10deg); } @media only screen and (max-width: 990px){ .link{ font-size: 20px; } } @media only screen and (max-width: 767px){ .link{ margin: 0 0 30px; } }