HTML:
<div class="container-1">
<a href="#link">ссылка</a>
</div>CSS:
.container-1 a {
background: linear-gradient(to bottom, #337AB7 0%, #337AB7 100%);
background-position: 0 100%;
background-repeat: repeat-x;
background-size: 1px 1px;
color: #000;
text-decoration: none;
padding-bottom: 2px;
}
.container-1 a:hover {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg id='squiggle-link' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:ev='http://www.w3.org/2001/xml-events' viewBox='0 0 20 4'%3E%3Cstyle type='text/css'%3E.squiggle{animation:shift .3s linear infinite;}@keyframes shift {from {transform:translateX(0);}to {transform:translateX(-20px);}}%3C/style%3E%3Cpath fill='none' stroke='%23337AB7' stroke-width='1' class='squiggle' d='M0,3.5 c 5,0,5,-2,10,-2 s 5,2,10,2 c 5,0,5,-2,10,-2 s 5,2,10,2'/%3E%3C/svg%3E");
background-position: 0 100%;
background-size: auto 4px;
background-repeat: repeat-x;
text-decoration: none;
}HTML:
<div class="container-2">
<a href="#link">ссылка</a>
</div>CSS:
.container-2 a {
text-decoration: none;
position: relative;
display: inline-block;
color: #000;
transition: color .3s ease-out;
}
.container-2 a::before {
content: "";
position: absolute;
z-index: -1;
bottom: 0;
left: 0;
height: 1px;
width: 100%;
background: #337AB7;
transition: height .3s ease-out;
}
.container-2 a:hover {
color: #fff;
}
.container-2 a:hover::before {
height: 100%;
}HTML:
<div class="container-5">
<a href="#link">ссылка</a>
</div>CSS:
.container-5 a {
color: #337AB7;
text-decoration: none;
transition: color .2s ease;
}
.container-5 a:hover {
animation: blur 1s ease-out;
color: #000;
}
@keyframes blur {
from {
text-shadow:0px 0px 10px #BFE2FF,
0px 0px 10px #BFE2FF,
0px 0px 25px #BFE2FF,
0px 0px 25px #BFE2FF,
0px 0px 25px #BFE2FF,
0px 0px 25px #337AB7,
0px 0px 50px #337AB7,
0px 0px 50px #337AB7;
}
}HTML:
<div class="container-6">
<a href="#link">ссылка</a>
</div>CSS:
.container-6 a {
position: relative;
display: inline-block;
text-decoration: none;
color: #337AB7;
}
.container-6 a:hover {
color: #000;
}
.container-6 a::before{
content: "";
width: 0;
height: 100%;
background-image: linear-gradient(to top, #BFE2FF 25%, transparent 40%);
position: absolute;
left: 0;
z-index: -1;
transform: rotate(-1deg);
transform-origin: left bottom;
transition: width .1s ease-out;
}
.container-6 a:hover::before{
width: 100%;
}