I am working on an SVG with CSS animated elements that are currently paused using animation-play-state. I would like to change this to running only when the SVG is vertically centered on scroll, and I am considering using jQuery or JavaScript for this purpose.
My plan is to target the class .paused, which is currently keeping the animations paused, and replace it with inline CSS once the SVG is in the desired centered position.