Подробное описание и демонстрация работы эффекта наведения для ссылки под номером №20 для библиотеки Bootstrap. Html и CSS код для оформления ссылок на сайте как на изображении.
HTML разметка и CSS стили для оформления ссылок на сайте<a href="#" class="link">hover me</a>
.link{ display: inline-block; font-size: 25px; font-weight: 700; color: #909090; text-transform: uppercase; z-index: 1; position: relative; transition: all 0.3s ease 0s; } .link:hover{ color: transparent; } .link:before, .link:after{ content: 'hover me'; width: 100%; height: 100%; position: absolute; top: 0; left: 0; opacity: 0; z-index: 1; transition: all 0.3s ease 0s; } .link:before{ color: #ff0059; -webkit-clip-path: polygon(0 0, 100% 1%, 100% 45%, 0 45%); clip-path: polygon(0 0, 100% 1%, 100% 45%, 0 45%); } .link:hover:before{ opacity: 1; transform: translate(1px,-1px); } .link:after{ color: #ce0044; -webkit-clip-path: polygon(0 45%, 100% 45%, 100% 100%, 0 100%); clip-path: polygon(0 45%, 100% 45%, 100% 100%, 0 100%); } .link:hover:after{ opacity: 1; transform: translate(-1px,1px); } @media only screen and (max-width: 767px){ .link{ margin-bottom: 20px; } }