marlonmarcello
10/17/2014 - 9:30 PM

Get pseudo-elements styles with javascript

Get pseudo-elements styles with javascript

var color = window.getComputedStyle(
  document.querySelector('.element'), ':before'
).getPropertyValue('color')