How can I make the fill color of an SVG circle
animate once from a given start (opaque black) to a given end (transparent/none). This should be triggered by a JavaScript function and the animation is a one-shot lasting a few hundred milliseconds. How can I do this with DOM/CSS without having to draw in a third-party library such as Snap.svg?
So when my callback is invoked
- set immediately
fill: black
- transition over period of 200ms to
fill: none