rafaelmaeuer
1/3/2017 - 5:15 PM

Get Pseudo-Element Properties with JavaScript From https://davidwalsh.name/pseudo-element

Get Pseudo-Element Properties with JavaScript From https://davidwalsh.name/pseudo-element

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