How can I change ::after
or ::before
styles with Javascript?
This is my code:
var hh = document.querySelector('.ticket-right');
h = window.getComputedStyle(hh, "::after").getPropertyValue('top');
It returns top value. How can I change this value with Javascript?