I tried to dynamically change the position of an element which is defined in CSS with :after. Using this:

$(function(){
    $('div::after').css({'top':'20px'})
})

But it doesn't work. Are there any ways to change the position?

Edit
Report