I'm having trouble animating the :after
pseudo-element of my ul. Below is the CSS code I have:
#slider .mypagination ul::after
{
content: "";
width:25%;
bottom: 0;
left:0;
position: absolute;
border-top:1px solid #7accc8;
transition:0.3s;
}
Here are my jQuery codes:
$(".mypagination li").click(function(){
$("#slider .mypagination ul:after").css({
"left":"100px"
},300);
})
The click event is triggering, as indicated by console.log("click")
. However, the animation isn't working properly. Can anyone provide assistance with this issue?