How to select .class::after
in jQuery?
css looks like this:
.nume
{
color: #463E3F;
position: absolute;
}
.nume::after{
background-color: #463E3F;
bottom: 0;
content: '';
display: block;
height: 1px;
opacity: 0;
}
and js looks like this:
$("body").click(function(){
$(".nume").animate({top: "5%"});
});
$("body").click(function(){
$(".nume::after").animate({opacity: "1"});
});
but $(".nume::after").animate({opacity: "1"});
is not working
Selecting and manipulating CSS pseudo-elements such as ::before and ::after using javascript (or jQuery) its now working either