Since Webflow doesn’t allow more than 10000 charchter in its custom code embeds, I had to find a way to inject an SVG image using the object method like so:
<object class="object" type="image/svg+xml" data="https://uploads-ssl.webflow.com/625044ee1e8e7a3167b3afa5/6288f57e82360f04ae1615a6_astro.svg"></object>
Now the question is, how do I access (with javascript) the document (svg) that is contained inside the object ? basically, I would like to target the svg element, and set its opacity to 0.5 Please see screenshot bellow:
Here is my codpen: https://codepen.io/leeloodallas/pen/GRQEaaq?editors=1011
Here is my site Read-Only: LINK
(how to share your site Read-Only link)