"Make responsive" doesn't work - looking for html/css solution
Hi Community,
I designed the interactive infographic on that page: https://www.elisabethdeim.com/infografik-illustration-die-welt-der-insekten
Unfortunately, "Make responsive" didn't work. Whatever settings I used (except stretch to screen), the image ended up shrinked to the screen height. I think, the Animate-script doesn't work with such long images.

That's why I finally exported it with "make responsive" unticked, because it was the only way to get it unscaled, and tried to find a css/html solution to make it responsive.
If I change the width of the browser window or view it on my phone, the infographic doesnt change in width, it goes above the page dimensions. My goal is it, that the infographic fits into the page design like the text and the other images and is as responsive as these.
It works in preview in Chrome Development Tools. When I change there "canvas" width to "100% and height to "auto" it resizes perfectly when I change the width of the window:
<canvas id="canvas" width="715" height="2396" style="position: absolute; display: block; background-color:rgba(255, 255, 255, 1.00);width:100%; height:auto;"></canvas>
But as soon as I refresh the page the Animate scripts overwrite my values. Same with when I change these values directly in my code. They are overwritten by these:
<canvas id="canvas" width="643" height="2157" style="position: absolute; display: block; background-color: rgb(255, 255, 255); width: 650px; height: 2179px;"></canvas>
I also tried to change the Animate JS-Code to load the values I need, but this didn't work as well.
This JS-Code in the Header loads the values:
var lib=comp.getLibrary(); loader.loadManifest(lib.properties.manifest)
}
from this JS-file-code (changing width to 100% did not work):
lib.properties = {
id: '4A0DC7F22C54B9489C856D25CD90F5DC',
width: 650,
height: 2179,
fps: 24,
color: "#FFFFFF",
opacity: 1.00,
manifest: [
{src:"https://static1.squarespace.com/static/597c793a4c0dbf2d3c6a1490/t/66506af2b083c43608fd66c8/1716546290943/nabuinsekteninfografikelisabethdeim1500px.png", id:"nabuinsekteninfografikelisabethdeim1500px"}
],
preloads: []
};
Does anybody of you has an idea how to get the infographic work the same way as my other text and image blocks on that page?
Thanks for your effort!
Elisabeth
