kaioe
11/2/2017 - 5:13 AM

js:pseudo selectors with JS

Allows to manipulate pseudo selectors using JS

document.styleSheets[0].addRule('.package-tile-container:nth-child('+index+')::after', 'background-image: url("'+$(this).attr('data-map')+'") !important;');