Hello,
I have added a custom hover effect to all my links using CSS.
The hover effects work on everything besides posts and pages, it only applies to the Wordpress info bar when viewing the site. Along with everything on the backend Wordpress.
I applied the CSS to this class: a
Is there a link class specifically for posts? Or can I create one specifically for posts?
Here is the CSS used:
.a {
display: inline-block;
position: relative;
padding-bottom: 7px;
}
.a:before {
content: ‘’;
display: block;
position: absolute;
left: 0;
bottom: 0;
height: 4px;
width: 0;
transition: width 0s ease, background .5s ease;
border-radius: 12px;
}
.a:after {
content: ‘’;
display: block;
position: absolute;
right: 0;
bottom: 0;
height: 4px;
width: 0;
background : #83C9F4;
transition: width .5s ease;
border-radius: 12px;
}
.a:hover:before {
width: 100%;
background: #83C9F4;
transition: width .5s ease;
}
.a:hover:after {
width: 100%;
background: transparent;
transition: all 0s ease;
}