Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

dom_overlay_container - for what?

Explorer ,
Jun 12, 2017 Jun 12, 2017

I try ti figure out the purpose of the

dom_overlay_container and animation_container
Can I
delete them in the html structure?
Or are they linked with any necessary JS Code?

2.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Jun 12, 2017 Jun 12, 2017

?

I found out that components are children of this layer - above the canvas.
The "dom_overlay_container" ID is implemented as target in the code snippets for components behaviour.
So in most cases, the dom_overlay_container is empty and without function.

Translate
LEGEND ,
Jun 12, 2017 Jun 12, 2017

They wouldn't be there if they didn't need to be there. Leave them alone, stop trying to break things.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 12, 2017 Jun 12, 2017

?

I found out that components are children of this layer - above the canvas.
The "dom_overlay_container" ID is implemented as target in the code snippets for components behaviour.
So in most cases, the dom_overlay_container is empty and without function.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 12, 2017 Jun 12, 2017

Yes, and it imposes an utterly insignificant storage overhead, so don't worry about it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 13, 2017 Nov 13, 2017

But it breaks my responsive design as it has fixed dimensions. So better remove it anyway.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 14, 2017 Nov 14, 2017
LATEST

You can use it for DOM animation, e.g.

Just paste this code in actions panel:

var div = document.getElementById('dom_overlay_container');

div.innerHTML += 'My Animated Text';

... and it is responsive just like the canvas.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines