Here are a series of paths. each path has that ends either with _before or _after.
<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>
How do I select paths that ends with _before?
const beforeSelected = ""; ///How to select element with class that ends with **_before**.
const bedoreAreas = d3
.selectAll(beforeSelected)
.transition()
.style('opacity', 1);
Thanks for helping