Is there anyway I can programmatically add a link to a Lottie file SVG tag?
Any way to bind multiple URLs to multiple tags in the same Lottie animation?
Need to add links to each of the circle shapes in this .json SVG:
Is there anyway I can programmatically add a link to a Lottie file SVG tag?
Any way to bind multiple URLs to multiple tags in the same Lottie animation?
Need to add links to each of the circle shapes in this .json SVG:
Yes. In After Effects, either:
Then generate the Lottie output and render using the SVG renderer. You can query and locate the element at runtime using document.querySelector("#circle") or similar and programmatically respond to clicks and mouse events for those elements.
You can see a demo at: https://codesandbox.io/s/lottie-dom-handlers-qjos4