This is a self Q&A of a handy piece of code I came up with.
Currently, there isn\'t an easy way to embed an SVG image and then have access to the SVG elements vi
for :hover event animations we can left the styles inside svg file, like a
check this on svgshare