Подробное описание и демонстрация работы эффекта наведения для ссылки под номером №42 для библиотеки Bootstrap. Html и CSS код для оформления ссылок на сайте как на изображении.

HTML разметка и CSS стили для оформления ссылок на сайте
<div class="demo">
    <a href="#" class="link"><span>hover me</span></a>
</div>
.link{
    font-family: 'PT Sans', sans-serif;
    display: inline-block;
    position: relative;
}
.link span{
    color: #505050;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    padding: 5px;
    display: block;
    transition: all 0.3s ease 0s;
}
.link:hover span{
    color: #34b67a;
    text-shadow: 0 0 2px #000;
}
.link:before{
    content: '';
    height: 5px;
    width: 100%;
    background-color: #34b67a;
    position: absolute;
    left: 0;
    bottom: 0;
    transition:all 0.3s;
}
.link:hover:before{
    height: 100%;
    background-color: rgba(52,182,122,0.2);
}
@media only screen and (max-width: 990px){
    .link span{ font-size: 20px; }
}
@media only screen and (max-width: 767px){
    .link{ margin-bottom: 20px; }
}


Теги:
0

Оставить своё мнение

Ваш e-mail не будет опубликован. Обязательные поля помечены *