Вот ряд путей. каждый путь имеет конец, который заканчивается либо _before или _ после .
<svg>
<g>
<path class= "my-class-before" ...></path>
</g>
<g>
<path class= "my-class-before" ...></path>
</g>
<g>
<path class= "my-class-after" ...></path>
</g>
<g>
<path class= "my-class-after" ...></path>
</g>
</svg>
Как выбрать пути, заканчивающиеся _before?
const beforeSelected = ""; ///How to select element with class that ends with **_before**.
const bedoreAreas = d3
.selectAll(beforeSelected)
.transition()
.style('opacity', 1);
Спасибо за помощь