Iframe shake

is there a issue with iframe? even on the samples live demo the screen is shaking all the time.

Hi Saad, thanks for reaching out. The shaking you’re seeing isn’t an inherent issue with the engine itself but rather is most often due to how the iframe is embedded or styled. For instance, if the container or iframe’s dimensions aren’t fixed properly, rapid layout changes or reflows can cause a jittery effect. Our documentation on embedding a Needle Engine project as an iframe recommends setting fixed width/height styles and ensuring that no conflicting CSS on the host page is triggering constant resizes – see the embedding guide for example code and best practices (docs/embedding.html).

A few steps you can try:
• Double-check that you’re using a fixed height (e.g., style=“width: 100%; height: 600px; border: none;”) rather than relying solely on 100% height to avoid reflows.
• Make sure that neither the iframe nor its container has CSS animations or dynamic sizing that might interfere.
• Verify that your project is running the latest Needle Engine version since occasional tweaks or bug fixes might affect these behaviors.
• If you’re using the IFrameContent component from the samples, confirm that it hasn’t been modified by any custom CSS that might inadvertently influence its positioning.

If the issue persists, please provide additional details (e.g., browser version, exact embed code, and a minimal reproducible example via Needle-engine - Vite Template (duplicated) - StackBlitz), which will help in diagnosing the problem further. You could also consider submitting a bug report through the menu (Needle Engine/Report a bug) if you suspect it might be an edge-case issue.

Hope this helps!

4 replies left
thread_x7TxbYST2QC7OQklghZRy34f
Reply to this post directly if you need further help (bottom right button)

Do you mean this sample? iframe Content | Needle Engine

It runs fine on my end, could you share more infos about which devices and browsers + versions you’re testing on?

I’m testing it on windows on edge - chrome browser , android and iOS device. I tried to download the sample from Unity and try running it locally, it still keep shaking to the point I can’t interact with it at all. if possible i can share a video snippit.